aboutsummaryrefslogtreecommitdiff
path: root/git-codereview/pending.go
diff options
context:
space:
mode:
authorAnthony Martin <ality@pbrane.org>2014-12-17 22:50:43 -0800
committerAnthony Martin <ality@pbrane.org>2014-12-30 14:33:19 +0000
commit081a9ac958014a95f591f8b42f0ab4ce0da6890c (patch)
treed4edc0d66cfddcb8730aa8873a3865532b5913e4 /git-codereview/pending.go
parent3076cb9dca59dbd37c3a58d9e428bfb2fe9d45bd (diff)
downloadgo-x-review-081a9ac958014a95f591f8b42f0ab4ce0da6890c.tar.xz
git-codereview: guard against ambiguous revision parameters
Change-Id: I3afcf06e1eab28bfdb2c6ace7aaf774070084900 Reviewed-on: https://go-review.googlesource.com/1783 Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'git-codereview/pending.go')
-rw-r--r--git-codereview/pending.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-codereview/pending.go b/git-codereview/pending.go
index a90f6ce..de9e4f5 100644
--- a/git-codereview/pending.go
+++ b/git-codereview/pending.go
@@ -41,7 +41,7 @@ func (b *pendingBranch) load() {
b.staged, b.unstaged, b.untracked = LocalChanges()
}
if b.parentHash != "" && b.commitHash != "" {
- b.committed = getLines("git", "diff", "--name-only", b.parentHash, b.commitHash)
+ b.committed = getLines("git", "diff", "--name-only", b.parentHash, b.commitHash, "--")
}
if !pendingLocal {
b.g, b.gerr = b.GerritChange("DETAILED_LABELS", "CURRENT_REVISION", "MESSAGES", "DETAILED_ACCOUNTS")