]> source.dussan.org Git - jgit.git/commit
Let RepositoryBuilder find bare repos 28/36128/2
authorChristian Halstrick <christian.halstrick@sap.com>
Fri, 7 Nov 2014 12:15:11 +0000 (13:15 +0100)
committerMatthias Sohn <matthias.sohn@sap.com>
Wed, 12 Nov 2014 22:24:30 +0000 (23:24 +0100)
commit140df3919850615997ce18a75e948d811df544a8
tree6a15a7d74bf4566e980891c13ced5355e2009fd7
parent5672535360a497856e4a075f6206da5ec9b4e3a9
Let RepositoryBuilder find bare repos

BaseRepositoryBuilder.findGitDir() was not searching correctly for bare
repositories. E.g. when running org.eclipse.jgit.pgm.Log and the current
directory was that of a bare git repository an error "fatal: error:
can't find git directory" was raised. With this fix RepositoryBuilder
will also check whether the given directory is the root of a bare
repository.

Bug: 450193
Change-Id: I4d4ad42e24ca397745adb0f3385caee3bcf3a186
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit/src/org/eclipse/jgit/lib/BaseRepositoryBuilder.java