diff options
| author | Russ Cox <rsc@golang.org> | 2015-01-30 13:35:06 -0500 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2015-01-30 19:31:56 +0000 |
| commit | 008ea1ee6a807eecb6bef31df8508695a4e42702 (patch) | |
| tree | efac32502f9beaa55264563a1f2e0e0349afb8c5 /git-codereview/sync.go | |
| parent | 28fbeb1f505cc97fa0ebb1eefc62d65749cfdfb5 (diff) | |
| download | go-x-review-008ea1ee6a807eecb6bef31df8508695a4e42702.tar.xz | |
git-codereview: fix bug in sync for multi-commit client
When deciding whether to discard the commit info for
the final commit, it was using the first commit instead of
the final one.
Change-Id: I2304fba6fa82a1d21600c3caa08b6b119edcdb7f
Reviewed-on: https://go-review.googlesource.com/3628
Reviewed-by: Rob Pike <r@golang.org>
Diffstat (limited to 'git-codereview/sync.go')
| -rw-r--r-- | git-codereview/sync.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-codereview/sync.go b/git-codereview/sync.go index 59611ac..5cba5bc 100644 --- a/git-codereview/sync.go +++ b/git-codereview/sync.go @@ -13,7 +13,7 @@ func cmdSync(args []string) { b := CurrentBranch() var id string if work := b.Pending(); len(work) > 0 { - id = work[len(work)-1].ChangeID + id = work[0].ChangeID } // Don't sync with staged or unstaged changes. |
