Merge pull request #181 from jonboulle/master

.tools: make GetFetchHeadCommit do what it says
This commit is contained in:
Vincent Batts
2015-09-12 11:25:29 -04:00
+1 -1
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
}