提交 81f2373f 编写于 作者: S Simon Hausmann

Make git-p4 work with bare repositories.

Signed-off-by: NSimon Hausmann <simon@lst.de>
上级 cd6cc0d3
......@@ -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"):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册