git-codereview: fix print directives
Change-Id: Ib95d197ecb32805ef80d9ec00ec8fa50a1b1ca51
Reviewed-on: https://go-review.googlesource.com/1893
Reviewed-by: Minux Ma <minux@golang.org>
Reviewed-by: Andrew Gerrand <adg@golang.org>
diff --git a/git-codereview/pending.go b/git-codereview/pending.go
index 63a2cdb..96220d4 100644
--- a/git-codereview/pending.go
+++ b/git-codereview/pending.go
@@ -233,8 +233,8 @@
fmt.Fprintf(&buf, "\tDo not commit directly to %s branch.\n", b.Name)
} else if b.commitsAhead > 1 {
fmt.Fprintf(&buf, "Branch contains %d commits not on origin/%s.\n", b.commitsAhead, b.OriginBranch())
- fmt.Fprintf(&buf, "\tThere should be at most one.\n", b.commitsAhead, b.OriginBranch())
- fmt.Fprintf(&buf, "\tUse 'git change', not 'git commit'.\n", b.Name)
+ fmt.Fprint(&buf, "\tThere should be at most one.\n")
+ fmt.Fprint(&buf, "\tUse 'git change', not 'git commit'.\n")
fmt.Fprintf(&buf, "\tRun 'git log %s..%s' to list commits.\n", b.OriginBranch(), b.Name)
}
return buf.String()