mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 14:13:58 +08:00
Merge pull request #181 from jonboulle/master
.tools: make GetFetchHeadCommit do what it says
This commit is contained in:
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user