diff options
author | chipx86 <chipx86@5efc13c4-1f27-0410-8691-ff2d1f55687e> | 2009-03-29 00:17:09 +0000 |
---|---|---|
committer | chipx86 <chipx86@5efc13c4-1f27-0410-8691-ff2d1f55687e> | 2009-03-29 00:17:09 +0000 |
commit | ca1c336ef1bb5158c9bca9ceceaca9a28ce196ef (patch) | |
tree | cee4d912f82684f763cb5f14cf1604190a935004 /scripts | |
parent | f1c2cef247b8ed769538230390b3ef7c3b68add0 (diff) |
Get the absolute path of the git directory before getting the parent
directory.
Fixes bug #996.
git-svn-id: https://reviewboard.googlecode.com/svn/trunk/rbtools@1876 5efc13c4-1f27-0410-8691-ff2d1f55687e
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/post-review | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/post-review b/scripts/post-review index 9f67c9c..49504db 100755 --- a/scripts/post-review +++ b/scripts/post-review @@ -1648,7 +1648,7 @@ class GitClient(SCMClient): # post-review in directories other than the top level of # of a work-tree would result in broken diffs on the server - os.chdir(os.path.dirname(git_dir)) + os.chdir(os.path.dirname(os.path.abspath(git_dir))) # We know we have something we can work with. Let's find out # what it is. We'll try SVN first. |