RevWalk: Don't release during inMergeBase()

In bc1af8459e ("RevWalk: Don't reset ObjectReader when stopping") we
stopped releasing the reader when the current log traversal is over.
This should have also been applied to the merge base logic that is
buried within MergeGenerator, but got missed.

Change-Id: I8328f43f02cba06fd545e22134872e781b9d4d36
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
This commit is contained in:
Shawn O. Pearce 2011-02-23 12:00:25 -08:00
parent 7505b93546
commit e757975fcd
1 changed files with 0 additions and 1 deletions

View File

@ -138,7 +138,6 @@ RevCommit next() throws MissingObjectException,
final RevCommit c = pending.next();
if (c == null) {
walker.reader.walkAdviceEnd();
walker.reader.release();
return null;
}