mirror of
https://gerrit.googlesource.com/git-repo
synced 2024-12-23 07:16:21 +00:00
Merge "Fix variable assignment"
This commit is contained in:
commit
a36af0767b
@ -1860,7 +1860,10 @@ class Project(object):
|
|||||||
# will fail.
|
# will fail.
|
||||||
# * otherwise, fetch all branches to make sure we end up with the
|
# * otherwise, fetch all branches to make sure we end up with the
|
||||||
# specific commit.
|
# 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:
|
if not name:
|
||||||
name = self.remote.name
|
name = self.remote.name
|
||||||
|
Loading…
Reference in New Issue
Block a user