[tools] Do not auto-CC v8-reviews@ on CLs created by branch creator script

R=machenbach@chromium.org

Bug: chromium:878303, chromium:877964
Change-Id: I9f0de35780861f3f121daa9952af70b332c11e98
Reviewed-on: https://chromium-review.googlesource.com/1231176
Reviewed-by: Michael Achenbach <machenbach@chromium.org>
Commit-Queue: Sergiy Byelozyorov <sergiyb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#56041}
This commit is contained in:
Sergiy Byelozyorov 2018-09-18 19:43:27 +02:00 committed by Commit Bot
parent 23cf68ac2c
commit 8f30ab323c
3 changed files with 6 additions and 3 deletions

View File

@ -221,7 +221,8 @@ class LandBranch(Step):
else:
self.GitUpload(author=self._options.author,
force=True,
bypass_hooks=True)
bypass_hooks=True,
no_autocc=True)
cmd = "cl land --bypass-hooks -f"
if self._options.dry_run:
print "Dry run. Command:\ngit %s" % cmd

View File

@ -207,7 +207,7 @@ class GitRecipesMixin(object):
def GitUpload(self, reviewer="", author="", force=False, cq=False,
cq_dry_run=False, bypass_hooks=False, cc="", tbr_reviewer="",
**kwargs):
no_autocc=False, **kwargs):
args = ["cl upload --send-mail"]
if author:
args += ["--email", Quoted(author)]
@ -223,6 +223,8 @@ class GitRecipesMixin(object):
args.append("--cq-dry-run")
if bypass_hooks:
args.append("--bypass-hooks")
if no_autocc:
args.append("--no-autocc")
if cc:
args += ["--cc", Quoted(cc)]
args += ["--gerrit"]

View File

@ -934,7 +934,7 @@ TBR=reviewer@chromium.org"""
Cmd("git commit -aF \"%s\"" % TEST_CONFIG["COMMITMSG_FILE"], "",
cb=CheckVersionCommit),
Cmd("git cl upload --send-mail --email \"author@chromium.org\" "
"-f --bypass-hooks --gerrit", ""),
"-f --bypass-hooks --no-autocc --gerrit", ""),
Cmd("git cl land --bypass-hooks -f", ""),
Cmd("git fetch", ""),
Cmd("git log -1 --format=%H --grep="