diff options
| author | Anthony Martin <ality@pbrane.org> | 2014-12-17 22:50:43 -0800 |
|---|---|---|
| committer | Anthony Martin <ality@pbrane.org> | 2014-12-30 14:33:19 +0000 |
| commit | 081a9ac958014a95f591f8b42f0ab4ce0da6890c (patch) | |
| tree | d4edc0d66cfddcb8730aa8873a3865532b5913e4 /git-codereview/pending.go | |
| parent | 3076cb9dca59dbd37c3a58d9e428bfb2fe9d45bd (diff) | |
| download | go-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.go | 2 |
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") |
