diff options
Diffstat (limited to 'project.py')
-rw-r--r-- | project.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |