Index: git_cl.py |
diff --git a/git_cl.py b/git_cl.py |
index 6de71b007928669af44871554d2a311eb75edf71..cb93095c8d89555cc04ae6409113d64c7de04b2a 100755 |
--- a/git_cl.py |
+++ b/git_cl.py |
@@ -702,7 +702,9 @@ or verify this branch is set up to track another (via the --track argument to |
if self.rietveld_server: |
RunGit(['config', self._RietveldServer(), self.rietveld_server]) |
else: |
- RunGit(['config', '--unset', self._IssueSetting()]) |
+ current_issue = self.GetIssue() |
+ if current_issue: |
+ RunGit(['config', '--unset', self._IssueSetting()]) |
self.issue = None |
self.SetPatchset(None) |