Skip to content

Commit

Permalink
Merge pull request cloudflare#3 from cloudflare/commitrange
Browse files Browse the repository at this point in the history
Fix incorrect base SHA for commit ranges
  • Loading branch information
prymitive authored Apr 26, 2021
2 parents 782d743 + e8f0935 commit 5a46172
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/git/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 5a46172

Please sign in to comment.