From 0b625445ef4aa6dc5883336948015804b462de1d Mon Sep 17 00:00:00 2001 From: Dave Borowitz Date: Thu, 12 Mar 2015 10:59:02 -0700 Subject: TestRepository: Support committing to unborn symref Change-Id: I6bcee635adda7c929f6fa68ef20438fe77e49184 --- org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'org.eclipse.jgit.junit/src/org') diff --git a/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java b/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java index a299d144d4..371e139a88 100644 --- a/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java +++ b/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java @@ -887,9 +887,8 @@ public class TestRepository { branch = b; Ref ref = db.getRef(branch.ref); - if (ref != null) { + if (ref != null && ref.getObjectId() != null) parent(pool.parseCommit(ref.getObjectId())); - } } CommitBuilder(CommitBuilder prior) throws Exception { -- cgit v1.2.3