mirror of
https://github.com/frej/fast-export.git
synced 2026-03-04 09:10:48 +01:00
Make git-p4 work with bare repositories.
This commit is contained in:
4
git-p4
4
git-p4
@@ -1185,9 +1185,7 @@ if cmd.needsGit:
|
||||
if len(gitdir) == 0:
|
||||
gitdir = ".git"
|
||||
if not isValidGitDir(gitdir):
|
||||
cdup = mypopen("git rev-parse --show-cdup").read()[:-1]
|
||||
if isValidGitDir(cdup + "/" + gitdir):
|
||||
os.chdir(cdup)
|
||||
gitdir = mypopen("git rev-parse --git-dir").read()[:-1]
|
||||
|
||||
if not isValidGitDir(gitdir):
|
||||
if isValidGitDir(gitdir + "/.git"):
|
||||
|
||||
Reference in New Issue
Block a user