VersionedMetaData#load: Use provided RevWalk instead of creating a new one
Change-Id: I1f561089346bfe1ff7082233644a544fbaaa2e63 Signed-off-by: Edwin Kempin <ekempin@google.com> (cherry picked from commit 8ae3162bc5ef4060e5a3b045ef14dae3a4e30d2f)
This commit is contained in:
parent
70958ea949
commit
c50c228684
@ -155,7 +155,7 @@ public abstract class VersionedMetaData {
|
||||
public void load(RevWalk walk, ObjectId id) throws IOException, ConfigInvalidException {
|
||||
this.reader = walk.getObjectReader();
|
||||
try {
|
||||
revision = id != null ? new RevWalk(reader).parseCommit(id) : null;
|
||||
revision = id != null ? walk.parseCommit(id) : null;
|
||||
onLoad();
|
||||
} finally {
|
||||
reader = null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user