Browse Source

Merge "Fix jgit rev-list --objects master"

stable-1.1
Shawn O. Pearce 14 years ago committed by Code Review
parent
commit
895af1480d
  1. 6
      org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/RevWalkTextBuiltin.java

6
org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/RevWalkTextBuiltin.java

@ -199,9 +199,11 @@ abstract class RevWalkTextBuiltin extends TextBuiltin {
} }
protected RevWalk createWalk() { protected RevWalk createWalk() {
if (argWalk == null) if (objects)
argWalk = objects ? new ObjectWalk(db) : new RevWalk(db); return new ObjectWalk(db);
if (argWalk != null)
return argWalk; return argWalk;
return new RevWalk(db);
} }
protected int walkLoop() throws Exception { protected int walkLoop() throws Exception {

Loading…
Cancel
Save