diff options
Diffstat (limited to 'git-codereview')
| -rw-r--r-- | git-codereview/branch.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/git-codereview/branch.go b/git-codereview/branch.go index 40288c7..a16de5e 100644 --- a/git-codereview/branch.go +++ b/git-codereview/branch.go @@ -156,7 +156,9 @@ func (b *Branch) Submitted(id string) bool { if id == "" { return false } - return len(getOutput("git", "log", "--grep", "Change-Id: "+id, b.Name+".."+b.OriginBranch())) > 0 + line := "Change-Id: " + id + out := getOutput("git", "log", "-n", "1", "-F", "--grep", line, b.Name+".."+b.OriginBranch()) + return strings.Contains(out, line) } var stagedRE = regexp.MustCompile(`^[ACDMR] `) |
