Skip to content

Commit e8909ca

Browse files
committed
Merge pull request #1 from sirlancelot/patch-1
Use `git rev-parse HEAD` to get the current hash
2 parents bf1756d + bf1754d commit e8909ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitbrute.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ func getDate(h []byte, rx *regexp.Regexp) (d date, idx int) {
178178
}
179179

180180
func curHash() string {
181-
all, err := exec.Command("git", "show", "--format=format:%H").Output()
181+
all, err := exec.Command("git", "rev-parse", "HEAD").Output()
182182
if err != nil {
183183
log.Fatal(err)
184184
}

0 commit comments

Comments
 (0)