summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--project.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/project.py b/project.py
index d54e336c..6dfb31c3 100644
--- a/project.py
+++ b/project.py
@@ -1838,7 +1838,10 @@ class Project(object):
1838 # will fail. 1838 # will fail.
1839 # * otherwise, fetch all branches to make sure we end up with the 1839 # * otherwise, fetch all branches to make sure we end up with the
1840 # specific commit. 1840 # specific commit.
1841 current_branch_only = self.upstream and not ID_RE.match(self.upstream) 1841 if self.upstream:
1842 current_branch_only = not ID_RE.match(self.upstream)
1843 else:
1844 current_branch_only = False
1842 1845
1843 if not name: 1846 if not name:
1844 name = self.remote.name 1847 name = self.remote.name