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