Skip to content

Commit bf1754d

Browse files
committed
Use git rev-parse HEAD to get the current hash
1 parent bf1756d commit bf1754d

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)