Skip to content

Commit dca1dfd

Browse files
committed
Merge pull request #181 from jonboulle/master
.tools: make GetFetchHeadCommit do what it says
2 parents b973245 + bbb0f00 commit dca1dfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.tools/validate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ func GitCommits(commitrange string) ([]CommitEntry, error) {
210210

211211
// GitFetchHeadCommit returns the hash of FETCH_HEAD
212212
func GitFetchHeadCommit() (string, error) {
213-
output, err := exec.Command("git", "rev-parse", "--verify", "HEAD").Output()
213+
output, err := exec.Command("git", "rev-parse", "--verify", "FETCH_HEAD").Output()
214214
if err != nil {
215215
return "", err
216216
}

0 commit comments

Comments
 (0)