From e8f093585c47679c4073b8fae2bb08b500974be3 Mon Sep 17 00:00:00 2001 From: Lukasz Mierzwa Date: Mon, 26 Apr 2021 14:58:40 +0100 Subject: [PATCH] Fix incorrect base SHA for commit ranges --- internal/git/git.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/git/git.go b/internal/git/git.go index 5cc31ba6..421ac3a2 100644 --- a/internal/git/git.go +++ b/internal/git/git.go @@ -100,7 +100,7 @@ type CommitRangeResults struct { } func (gcr CommitRangeResults) String() string { - return fmt.Sprintf("%s..%s", gcr.From, gcr.To) + return fmt.Sprintf("%s^..%s", gcr.From, gcr.To) } func CommitRange(cmd CommandRunner, baseBranch string) (cr CommitRangeResults, err error) {