diff options
| author | Russ Cox <rsc@golang.org> | 2014-12-22 10:43:04 -0500 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2014-12-22 18:46:49 +0000 |
| commit | 20afb4b01de53bb69909eb6fa33e08b9b28208c5 (patch) | |
| tree | c691d2659f9fd60bc28a9703e5f8b3913efffa64 /git-codereview/branch.go | |
| parent | 5a8749f0a02575c44b2e68f9a74a88f401e36465 (diff) | |
| download | go-x-review-20afb4b01de53bb69909eb6fa33e08b9b28208c5.tar.xz | |
git-codereview: add test for pending
Fixes #9352
Change-Id: I9714c58ead93d8ec91a09e40a04b1a4e2f075c54
Reviewed-on: https://go-review.googlesource.com/1961
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
Diffstat (limited to 'git-codereview/branch.go')
| -rw-r--r-- | git-codereview/branch.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/git-codereview/branch.go b/git-codereview/branch.go index ad82a46..9c9d8e7 100644 --- a/git-codereview/branch.go +++ b/git-codereview/branch.go @@ -116,9 +116,9 @@ func (b *Branch) loadPending() { // We want to save the info about the *first* commit // after the branch point, and the log is ordered // starting at the most recent and working backward. - b.commitHash = hash - b.shortCommitHash = shortHash - b.parentHash = parent + b.commitHash = strings.TrimSpace(hash) + b.shortCommitHash = strings.TrimSpace(shortHash) + b.parentHash = strings.TrimSpace(parent) b.subject = subject b.message = msg for _, line := range strings.Split(msg, "\n") { |
