diff options
author | Simon Hausmann <shausman@trolltech.com> | 2007-05-16 12:12:39 +0200 |
---|---|---|
committer | Simon Hausmann <shausman@trolltech.com> | 2007-05-16 12:12:39 +0200 |
commit | dc1a93b6dce1d38e6e0ddd8980d8ccd64937fcb1 (patch) | |
tree | 2507a196b5d3c45042477d5f3827c4d64205c8dd /contrib | |
parent | Give a better hint if git-p4 submit fails (diff) | |
download | tgif-dc1a93b6dce1d38e6e0ddd8980d8ccd64937fcb1.tar.xz |
Fix calling git-p4 rebase from within a subdirectory (git rebase wants to be in toplevel)
Signed-off-by: Simon Hausmann <shausman@trolltech.com>
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/fast-import/git-p4 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/fast-import/git-p4 b/contrib/fast-import/git-p4 index c48b257577..ca6c623809 100755 --- a/contrib/fast-import/git-p4 +++ b/contrib/fast-import/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"): |