diff options
| author | Adam Bender <abender@gmail.com> | 2025-06-11 19:12:34 -0700 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2025-06-17 10:40:36 -0700 |
| commit | c4af2b031e13e282462ea8ae4311bfabe115ae9d (patch) | |
| tree | f9bbfdebdd23b2e0c3fe3c838abfb6f6849211bf /git-codereview/submit.go | |
| parent | d5c513ca99314c64746d8c23dd8c126b9dbb3823 (diff) | |
| download | go-x-review-c4af2b031e13e282462ea8ae4311bfabe115ae9d.tar.xz | |
git-codereview: explicitly include the codereview subcommand in suggested commands
If a user does not have the recommended aliases in their .gitconfig, the suggested
command will not work. Several suggestions have the codereview subcommand already;
this change updates all suggestions to include it.
Change-Id: I3613f24172c2d90a7038f263cad93cbdcddbbbca
Reviewed-on: https://go-review.googlesource.com/c/review/+/681176
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Junyang Shao <shaojunyang@google.com>
Reviewed-by: Sean Liao <sean@liao.dev>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Auto-Submit: Sean Liao <sean@liao.dev>
Diffstat (limited to 'git-codereview/submit.go')
| -rw-r--r-- | git-codereview/submit.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/git-codereview/submit.go b/git-codereview/submit.go index fc02713..ce629c3 100644 --- a/git-codereview/submit.go +++ b/git-codereview/submit.go @@ -64,11 +64,11 @@ func cmdSubmit(args []string) { if len(cs) == 1 && len(b.Pending()) == 1 { if err := runErr("git", "checkout", "-q", "-B", b.Name, g.CurrentRevision, "--"); err != nil { dief("submit succeeded, but cannot sync local branch\n"+ - "\trun 'git sync' to sync, or\n"+ - "\trun 'git branch -D %s; git change master; git sync' to discard local branch", b.Name) + "\trun 'git codereview sync' to sync, or\n"+ + "\trun 'git branch -D %s; git change master; git codereview sync' to discard local branch", b.Name) } } else { - printf("submit succeeded; run 'git sync' to sync") + printf("submit succeeded; run 'git codereview sync' to sync") } // Done! Change is submitted, branch is up to date, ready for new work. @@ -171,7 +171,7 @@ func submitCheck(g *GerritChange) error { case "MERGED": // Can happen if moving between different clients. - return fmt.Errorf("change already submitted, run 'git sync'") + return fmt.Errorf("change already submitted, run 'git codereview sync'") case "ABANDONED": return fmt.Errorf("change abandoned") |
