diff options
author | Minh Thai <mthai@google.com> | 2017-11-15 22:48:04 -0800 |
---|---|---|
committer | Minh Thai <mthai@google.com> | 2017-11-15 22:48:04 -0800 |
commit | 15a189e4e0c38a8138c5d5d15ce94e50d3495bf1 (patch) | |
tree | f5fd78b34784b573c898f3a6b1e4c2b76f295ad8 /org.eclipse.jgit.junit/src | |
parent | f3897ac6c3fa0f62f013d44220448018715c7aa8 (diff) | |
download | jgit-15a189e4e0c38a8138c5d5d15ce94e50d3495bf1.tar.gz jgit-15a189e4e0c38a8138c5d5d15ce94e50d3495bf1.zip |
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 <mthai@google.com>
Diffstat (limited to 'org.eclipse.jgit.junit/src')
-rw-r--r-- | org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java | 1 |
1 files changed, 1 insertions, 0 deletions
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<R extends Repository> { 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: |