projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca0affe
)
Fixing syncing (gitdir discovery / cd) for bare repositories
author
Simon Hausmann
<simon@lst.de>
Thu, 17 May 2007 05:42:38 +0000
(07:42 +0200)
committer
Simon Hausmann
<simon@lst.de>
Thu, 17 May 2007 05:42:38 +0000
(07:42 +0200)
Signed-off-by: Simon Hausmann <simon@lst.de>
contrib/fast-import/git-p4
patch
|
blob
|
history
diff --git
a/contrib/fast-import/git-p4
b/contrib/fast-import/git-p4
index 70366ff8c06bb96adc8795a11df1ab4f319b737d..239304857d894e3612d71d90185606955bfa5d22 100755
(executable)
--- a/
contrib/fast-import/git-p4
+++ b/
contrib/fast-import/git-p4
@@
-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"):