mirror of
https://github.com/vbatts/git-validation.git
synced 2024-11-23 00:25:41 +00:00
Merge pull request #47 from cevich/fix_gpg_interference
Consider only commit IDs when listing range
This commit is contained in:
commit
60cb871391
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ import (
|
||||||
// If commitrange is a single commit, all ancestor commits up through the hash provided.
|
// 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.
|
// If commitrange is an empty commit range, then nil is returned.
|
||||||
func Commits(commitrange string) ([]CommitEntry, error) {
|
func Commits(commitrange string) ([]CommitEntry, error) {
|
||||||
cmdArgs := []string{"git", "--no-pager", "log", `--pretty=format:%H`, commitrange}
|
cmdArgs := []string{"git", "rev-list", commitrange}
|
||||||
if debug() {
|
if debug() {
|
||||||
logrus.Infof("[git] cmd: %q", strings.Join(cmdArgs, " "))
|
logrus.Infof("[git] cmd: %q", strings.Join(cmdArgs, " "))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue