From bbb0f00ea81b1c379e8336437c3c6845a99affb4 Mon Sep 17 00:00:00 2001 From: Jonathan Boulle Date: Fri, 11 Sep 2015 14:52:42 -0700 Subject: [PATCH] .tools: make GetFetchHeadCommit do what it says Signed-off-by: Jonathan Boulle --- .tools/validate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.tools/validate.go b/.tools/validate.go index bf337dff..a02ead4c 100644 --- a/.tools/validate.go +++ b/.tools/validate.go @@ -210,7 +210,7 @@ func GitCommits(commitrange string) ([]CommitEntry, error) { // GitFetchHeadCommit returns the hash of FETCH_HEAD func GitFetchHeadCommit() (string, error) { - output, err := exec.Command("git", "rev-parse", "--verify", "HEAD").Output() + output, err := exec.Command("git", "rev-parse", "--verify", "FETCH_HEAD").Output() if err != nil { return "", err }