summaryrefslogtreecommitdiffstats
path: root/project.py
diff options
context:
space:
mode:
Diffstat (limited to 'project.py')
-rw-r--r--project.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/project.py b/project.py
index 3b8604e3..c91085c3 100644
--- a/project.py
+++ b/project.py
@@ -1860,7 +1860,10 @@ class Project(object):
1860 # will fail. 1860 # will fail.
1861 # * otherwise, fetch all branches to make sure we end up with the 1861 # * otherwise, fetch all branches to make sure we end up with the
1862 # specific commit. 1862 # specific commit.
1863 current_branch_only = self.upstream and not ID_RE.match(self.upstream) 1863 if self.upstream:
1864 current_branch_only = not ID_RE.match(self.upstream)
1865 else:
1866 current_branch_only = False
1864 1867
1865 if not name: 1868 if not name:
1866 name = self.remote.name 1869 name = self.remote.name