.tools: make GetFetchHeadCommit do what it says
Signed-off-by: Jonathan Boulle <jonathanboulle@gmail.com>
This commit is contained in:
parent
b97324550d
commit
bbb0f00ea8
.tools
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue