commit | a36af0767bd180ac82c9ae4a1ae8418aa2dbec3f | [log] [tgz] |
---|---|---|
author | David Pursehouse <dpursehouse@collab.net> | Wed Jun 29 01:43:41 2016 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Wed Jun 29 01:43:41 2016 +0000 |
tree | 21d9120cc3d666ec57db45d27e35b722b54d2e72 | |
parent | 9d2b14d2ec39245103e9ceb664afb5f0227d9056 [diff] | |
parent | 037040f73e0940957dff77e74b40d5c85734e712 [diff] |
Merge "Fix variable assignment"
diff --git a/project.py b/project.py index 3b8604e..c91085c 100644 --- a/project.py +++ b/project.py
@@ -1860,7 +1860,10 @@ # will fail. # * otherwise, fetch all branches to make sure we end up with the # specific commit. - current_branch_only = self.upstream and not ID_RE.match(self.upstream) + if self.upstream: + current_branch_only = not ID_RE.match(self.upstream) + else: + current_branch_only = False if not name: name = self.remote.name