From e0744891fe233f1b78b55ea14675d5766d3ac321 Mon Sep 17 00:00:00 2001 From: Han-Wen Nienhuys Date: Tue, 19 Nov 2019 19:55:06 -0800 Subject: FileRepository: cleanup refs outside refs/ on reftable conversion Change-Id: Iab7d3a08906e826e26572f534512a09d3a5876b0 Signed-off-by: Han-Wen Nienhuys Signed-off-by: Matthias Sohn --- .../tst/org/eclipse/jgit/internal/storage/file/FileReftableTest.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'org.eclipse.jgit.test') diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/FileReftableTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/FileReftableTest.java index bb68ef185a..e0e20fb4dd 100644 --- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/FileReftableTest.java +++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/FileReftableTest.java @@ -122,6 +122,11 @@ public class FileReftableTest extends SampleDataRepositoryTestCase { } } + @Test + public void additionalRefsAreRemoved() { + assertFalse(new File(db.getDirectory(), Constants.HEAD).exists()); + } + @Test public void testCompactFully() throws Exception { ObjectId c1 = db.resolve("master^^"); -- cgit v1.2.3