mirror of
https://github.com/git/git.git
synced 2024-11-23 18:05:29 +08:00
Make git-p4 work with bare repositories.
Signed-off-by: Simon Hausmann <simon@lst.de>
This commit is contained in:
parent
cd6cc0d318
commit
81f2373f89
@ -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"):
|
||||
|
Loading…
Reference in New Issue
Block a user