diff --git a/git/commits.go b/git/commits.go index 52af997..5a55f6a 100644 --- a/git/commits.go +++ b/git/commits.go @@ -15,7 +15,7 @@ import ( // If commitrange is a single commit, all ancestor commits up through the hash provided. // If commitrange is an empty commit range, then nil is returned. func Commits(commitrange string) ([]CommitEntry, error) { - cmdArgs := []string{"git", "--no-pager", "log", `--pretty=format:%H`, commitrange} + cmdArgs := []string{"git", "rev-list", commitrange} if debug() { logrus.Infof("[git] cmd: %q", strings.Join(cmdArgs, " ")) }