Index: git_cl.py |
diff --git a/git_cl.py b/git_cl.py |
index 351aba58e81fa73927f9ef4811223106b6281ea5..b961ea7ca2fa35f1fdf6b4e7ed67bb4a57d78b1b 100755 |
--- a/git_cl.py |
+++ b/git_cl.py |
@@ -513,12 +513,12 @@ or verify this branch is set up to track another (via the --track argument to |
def RunHook(self, committing, upstream_branch, tbr, may_prompt, verbose): |
"""Calls sys.exit() if the hook fails; returns a HookResults otherwise.""" |
- root = RunCommand(['git', 'rev-parse', '--show-cdup']).strip() |
- absroot = os.path.abspath(root or '.') |
+ root = RunCommand(['git', 'rev-parse', '--show-cdup']).strip() or '.' |
+ absroot = os.path.abspath(root) |
# We use the sha1 of HEAD as a name of this change. |
name = RunCommand(['git', 'rev-parse', 'HEAD']).strip() |
- files = scm.GIT.CaptureStatus([absroot], upstream_branch) |
+ files = scm.GIT.CaptureStatus([root], upstream_branch) |
M-A Ruel
2011/04/20 14:50:07
Can you note that
# It must not be abspath because
|
issue = ConvertToInteger(self.GetIssue()) |
patchset = ConvertToInteger(self.GetPatchset()) |