Index: git_cl_hooks.py |
=================================================================== |
--- git_cl_hooks.py (revision 35790) |
+++ git_cl_hooks.py (working copy) |
@@ -42,10 +42,10 @@ |
name = m.group(1) |
files = scm.GIT.CaptureStatus([root], upstream_branch) |
issue = Backquote(['git', 'cl', 'status', '--field=id']) |
- if issue == "None": |
+ try: |
+ description = gcl.GetIssueDescription(int(issue)) |
chase
2010/01/08 20:15:56
I suspect this code is a no-op on my system.. md5s
Robert Sesek
2010/01/08 20:23:46
I'm on a Mac, FYI:
[src (gtk-cookie-test)] rsesek
|
+ except ValueError: |
description = m.group(2) |
- else: |
- description = gcl.GetIssueDescription(int(issue)) |
patchset = None |
self.change = presubmit_support.GitChange(name, description, absroot, files, |
issue, patchset) |