]> source.dussan.org Git - jgit.git/commit
RepositoryCache: don't require HEAD in git repositories 42/152842/8
authorHan-Wen Nienhuys <hanwen@google.com>
Sun, 17 Nov 2019 23:05:57 +0000 (15:05 -0800)
committerMatthias Sohn <matthias.sohn@sap.com>
Tue, 26 Nov 2019 00:57:19 +0000 (01:57 +0100)
commit9cb8e2f31035d265b83ba4e295aa3abb4c737ebf
treec11f6b01deda4f82d0390932ee17013b43807c6c
parente0744891fe233f1b78b55ea14675d5766d3ac321
RepositoryCache: don't require HEAD in git repositories

Reftable-enabled repositories don't have a file called HEAD. Check for
reftable/ instead.

This fixes repository creation on reftable in Gerrit.

Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
Change-Id: I778c2be01d96aaf135affae4b457b5fe5b483bee
org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/FileReftableTest.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/RepositoryCache.java