提交 5c4153e4 编写于 作者: S Simon Hausmann

Fixing syncing (gitdir discovery / cd) for bare repositories

Signed-off-by: NSimon Hausmann <simon@lst.de>
上级 ca0affe7
......@@ -1200,7 +1200,9 @@ if cmd.needsGit:
if not isValidGitDir(gitdir):
gitdir = mypopen("git rev-parse --git-dir").read()[:-1]
if os.path.exists(gitdir):
os.chdir(mypopen("git rev-parse --show-cdup").read()[:-1]);
cdup = mypopen("git rev-parse --show-cdup").read()[:-1];
if len(cdup) > 0:
os.chdir(cdup);
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.
先完成此消息的编辑!
想要评论请 注册