mirror of
https://github.com/git/git.git
synced 2024-10-28 12:59:41 +01:00
Fixing syncing (gitdir discovery / cd) for bare repositories
Signed-off-by: Simon Hausmann <simon@lst.de>
This commit is contained in:
parent
ca0affe7bb
commit
5c4153e488
1 changed files with 3 additions and 1 deletions
|
@ -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"):
|
||||
|
|
Loading…
Reference in a new issue