Cross Forests
/
projects
/
python
/
fast-export.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6f9683
)
Fix calling git-p4 rebase from within a subdirectory (git rebase wants to be in toplevel)
author
Simon Hausmann
<shausman@rhea.troll.no>
Wed, 16 May 2007 10:12:39 +0000
(12:12 +0200)
committer
Simon Hausmann
<shausman@rhea.troll.no>
Wed, 16 May 2007 10:12:39 +0000
(12:12 +0200)
git-p4
patch
|
blob
|
history
diff --git
a/git-p4
b/git-p4
index
c48b257
..
ca6c623
100755
(executable)
--- a/
git-p4
+++ b/
git-p4
@@
-1197,6
+1197,8
@@
if cmd.needsGit:
gitdir = ".git"
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]);
if not isValidGitDir(gitdir):
if isValidGitDir(gitdir + "/.git"):