.tools: make GetFetchHeadCommit do what it says

Signed-off-by: Jonathan Boulle <jonathanboulle@gmail.com>
This commit is contained in:
Jonathan Boulle 2015-09-11 14:52:42 -07:00
parent b97324550d
commit bbb0f00ea8
1 changed files with 1 additions and 1 deletions

View File

@ -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
}