From 543cc2605128e72dd7c49d32a4788fc1e2f47dc6 Mon Sep 17 00:00:00 2001 From: Damien Neil Date: Wed, 11 Mar 2020 08:27:33 -0700 Subject: git-codereview: add mail --no-verify option This adds a flag to set git push --no-verify, disabling pre-push hooks. Change-Id: I9ef686bd3ec742901d0138fc9028d65efde83e87 Reviewed-on: https://go-review.googlesource.com/c/review/+/222922 Trust: Damien Neil Run-TryBot: Damien Neil Reviewed-by: Brad Fitzpatrick Reviewed-by: Russ Cox Trust: Brad Fitzpatrick TryBot-Result: Gopher Robot --- git-codereview/mail.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/git-codereview/mail.go b/git-codereview/mail.go index 2e6c6a6..44d83d6 100644 --- a/git-codereview/mail.go +++ b/git-codereview/mail.go @@ -27,6 +27,7 @@ func cmdMail(args []string) { trust = flags.Bool("trust", false, "add a Trust+1 vote to the CL") trybot = flags.Bool("trybot", false, "run trybots on the uploaded CLs") wip = flags.Bool("wip", false, "set the status of a change to Work-in-Progress") + noverify = flags.Bool("no-verify", false, "disable presubmits") ) flags.Var(rList, "r", "comma-separated list of reviewers") flags.Var(ccList, "cc", "comma-separated list of people to CC:") @@ -155,6 +156,9 @@ func cmdMail(args []string) { if *noKeyCheck { args = append(args, "-o", "nokeycheck") } + if *noverify { + args = append(args, "--no-verify") + } args = append(args, "origin", refSpec) run("git", args...) -- cgit v1.3