diff options
Diffstat (limited to 'org.eclipse.jgit.test')
-rw-r--r-- | org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/RefDirectoryTest.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/RefDirectoryTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/RefDirectoryTest.java index a821e948e7..87b9176368 100644 --- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/RefDirectoryTest.java +++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/RefDirectoryTest.java @@ -1278,10 +1278,8 @@ public class RefDirectoryTest extends LocalDiskRepositoryTestCase { private static ReceiveCommand newCommand(RevCommit a, RevCommit b, String string, Type update) { - ReceiveCommand ret = new ReceiveCommand(a != null ? a.getId() : null, + return new ReceiveCommand(a != null ? a.getId() : null, b != null ? b.getId() : null, string, update); - ret.setResult(ReceiveCommand.Result.NOT_ATTEMPTED); - return ret; } private void writeLooseRef(String name, AnyObjectId id) throws IOException { |