From 15a189e4e0c38a8138c5d5d15ce94e50d3495bf1 Mon Sep 17 00:00:00 2001 From: Minh Thai Date: Wed, 15 Nov 2017 22:48:04 -0800 Subject: Add flag for keeping ref tombstones in GC reftable A tombstone will prevent a delayed reference update from resurrecting the deleted reference. Change-Id: Id9f4df43d435a299ff16cef614821439edef9b11 Signed-off-by: Minh Thai --- org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java | 1 + 1 file changed, 1 insertion(+) (limited to 'org.eclipse.jgit.junit/src/org/eclipse') 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 5d21e3d85c..382afc5cae 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 @@ -587,6 +587,7 @@ public class TestRepository { public void delete(String ref) throws Exception { ref = normalizeRef(ref); RefUpdate u = db.updateRef(ref); + u.setForceUpdate(true); switch (u.delete()) { case FAST_FORWARD: case FORCED: -- cgit v1.2.3