mirror of
https://gerrit.googlesource.com/git-repo
synced 2024-12-21 07:16:21 +00:00
If revision is sha hash and dest-branch is defined, use it for starting branch
Change-Id: I538c7d216f72b87629b61aee547d374a398c95da
This commit is contained in:
parent
7e12e0a2fa
commit
5fb8ed217c
@ -59,8 +59,12 @@ revision specified in the manifest.
|
|||||||
for project in all_projects:
|
for project in all_projects:
|
||||||
pm.update()
|
pm.update()
|
||||||
# If the current revision is a specific SHA1 then we can't push back
|
# If the current revision is a specific SHA1 then we can't push back
|
||||||
# to it so substitute the manifest default revision instead.
|
# to it; so substitute with dest_branch if defined, or with manifest
|
||||||
|
# default revision instead.
|
||||||
if IsId(project.revisionExpr):
|
if IsId(project.revisionExpr):
|
||||||
|
if project.dest_branch:
|
||||||
|
project.revisionExpr = project.dest_branch
|
||||||
|
else:
|
||||||
project.revisionExpr = self.manifest.default.revisionExpr
|
project.revisionExpr = self.manifest.default.revisionExpr
|
||||||
if not project.StartBranch(nb):
|
if not project.StartBranch(nb):
|
||||||
err.append(project)
|
err.append(project)
|
||||||
|
Loading…
Reference in New Issue
Block a user