Skip to content

Commit

Permalink
Merge pull request #1 from sirlancelot/patch-1
Browse files Browse the repository at this point in the history
Use `git rev-parse HEAD` to get the current hash
  • Loading branch information
bradfitz committed Apr 14, 2014
2 parents bf1756d + bf1754d commit e8909ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gitbrute.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ func getDate(h []byte, rx *regexp.Regexp) (d date, idx int) {
}

func curHash() string {
all, err := exec.Command("git", "show", "--format=format:%H").Output()
all, err := exec.Command("git", "rev-parse", "HEAD").Output()
if err != nil {
log.Fatal(err)
}
Expand Down

0 comments on commit e8909ca

Please sign in to comment.