Codebase list gitbrute / 54f9ed3
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
103103 commitDate, cdatei := getDate(blob, committerDateRx)
104104
105105 s1 := sha1.New()
106 wantHexPrefix := []byte(*prefix)
106 wantHexPrefix := []byte(strings.ToLower(*prefix))
107107 hexBuf := make([]byte, 0, sha1.Size*2)
108108
109109 for t := range possibilities {