diff options
| author | Emil Hessman <emil@hessman.se> | 2014-12-20 09:50:02 +0100 |
|---|---|---|
| committer | Andrew Gerrand <adg@golang.org> | 2014-12-21 23:20:16 +0000 |
| commit | 4b0c4ea98aa4c2daec3ff6023260d9953d93c014 (patch) | |
| tree | 86bd04aa1561e08bfdec5196005683a0eaef134a | |
| parent | 8fc787de30eaad02220c1c1c3d85c512390932ae (diff) | |
| download | go-x-review-4b0c4ea98aa4c2daec3ff6023260d9953d93c014.tar.xz | |
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>
| -rw-r--r-- | git-codereview/pending.go | 4 |
1 files changed, 2 insertions, 2 deletions
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 @@ func (b *Branch) errors() string { 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() |
