From c4af2b031e13e282462ea8ae4311bfabe115ae9d Mon Sep 17 00:00:00 2001 From: Adam Bender Date: Wed, 11 Jun 2025 19:12:34 -0700 Subject: 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 Reviewed-by: Junyang Shao Reviewed-by: Sean Liao Reviewed-by: Cherry Mui Auto-Submit: Sean Liao --- git-codereview/submit.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'git-codereview/submit.go') 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") -- cgit v1.3