Lowercase the prefix from the command line Previously, running gitbrute with an uppercase hex prefix had resulted in an endless loop.
Roland Illig authored
2 years ago
Brad Fitzpatrick committed
2 years ago
1 changed file(s) with
1 addition(s)
and
1 deletion(s)
.
Raw diff
Collapse all
Expand all
+1
-1
gitbrute.go
less
more
103
103
commitDate, cdatei := getDate(blob, committerDateRx)
104
104
105
105
s1 := sha1.New()
106
wantHexPrefix := []byte(*prefix)
106
wantHexPrefix := []byte(strings.ToLower(*prefix))
107
107
hexBuf := make([]byte, 0, sha1.Size*2)
108
108
109
109
for t := range possibilities {