]> source.dussan.org Git - jgit.git/commit
Ensure the tree parser resets in ObjectWalk 58/258/1
authorShawn O. Pearce <spearce@spearce.org>
Tue, 2 Feb 2010 19:39:24 +0000 (11:39 -0800)
committerShawn O. Pearce <spearce@spearce.org>
Tue, 2 Feb 2010 22:23:30 +0000 (14:23 -0800)
commit0d94a5ca666abbc787392565bbeb96c47dd36e7e
treeb43c7fb1f27ca63595e375144faa67469ebd1f44
parent986d616ed4f1fc4cfcf3fbc4d5ad4569030b748a
Ensure the tree parser resets in ObjectWalk

During dispose() or reset() we are suppose to be restoring the
ObjectWalk instance back to the original pre-walk state, but we
failed to reset the tree parser.  This can lead to confusing state
if the ObjectWalk was reused by the caller, as entries from the
old walk might be reported as part of the new walk.

Change-Id: I6237bae7bfd3794e8b9a92b4dd475559cc72e634
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit/src/org/eclipse/jgit/revwalk/ObjectWalk.java