mirror of
https://gerrit.googlesource.com/git-repo
synced 2024-12-21 07:16:21 +00:00
project: do not update local published/ refs in dryrun mode
Bug: https://crbug.com/gerrit/13087 Change-Id: I197e6d6d07c7d325ac294b597d42e895f77c737f Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/289182 Reviewed-by: Michael Mortensen <mmortensen@google.com> Tested-by: Mike Frysinger <vapier@google.com>
This commit is contained in:
parent
8c1e9cbef1
commit
d7f8683daf
@ -1026,6 +1026,7 @@ class Project(object):
|
|||||||
if GitCommand(self, cmd, bare=True).Wait() != 0:
|
if GitCommand(self, cmd, bare=True).Wait() != 0:
|
||||||
raise UploadError('Upload failed')
|
raise UploadError('Upload failed')
|
||||||
|
|
||||||
|
if not dryrun:
|
||||||
msg = "posted to %s for %s" % (branch.remote.review, dest_branch)
|
msg = "posted to %s for %s" % (branch.remote.review, dest_branch)
|
||||||
self.bare_git.UpdateRef(R_PUB + branch.name,
|
self.bare_git.UpdateRef(R_PUB + branch.name,
|
||||||
R_HEADS + branch.name,
|
R_HEADS + branch.name,
|
||||||
|
Loading…
Reference in New Issue
Block a user