18fe93f97a160b756e2947663a37b85724a0a67e — Drew DeVault 3 months ago 2ac4a8e
Deal with weird git output
1 files changed, 3 insertions(+), 0 deletions(-)

M main.go
M main.go => main.go +3 -0
@@ 78,6 78,9 @@ fields := strings.FieldsFunc(scanner.Text(), func(r rune) bool {
  			return r == ' ' || r == '\t'
  		})
+ 		if len(fields) < 4 {
+ 			continue
+ 		}
  		oid := fields[2]
  		path := strings.Join(fields[3:], " ")
  		m[path] = oid