aboutsummaryrefslogtreecommitdiff
path: root/git-codereview/sync.go
diff options
context:
space:
mode:
Diffstat (limited to 'git-codereview/sync.go')
-rw-r--r--git-codereview/sync.go2
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.