From c688d8e51cb58d4af4c7460de6e224fd4f0b2210 Mon Sep 17 00:00:00 2001 From: chipx86 Date: Sun, 29 Mar 2009 00:17:09 +0000 Subject: Get the absolute path of the git directory before getting the parent directory. Fixes bug #996. --- scripts/post-review | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- cgit v1.2.3