fix #1189, commit messages containing a pipe (#1203)

tokarchuk/v1.17
Philippe Kueck 8 years ago committed by Lunny Xiao
parent ccc15b9e1a
commit e2b2fd6e78
  1. 4
      models/graph.go

@ -78,8 +78,8 @@ func graphItemFromString(s string, r *git.Repository) (GraphItem, error) {
return GraphItem{}, fmt.Errorf("Failed parsing grap line:%s. Expect 1 or two fields", s) return GraphItem{}, fmt.Errorf("Failed parsing grap line:%s. Expect 1 or two fields", s)
} }
rows := strings.Split(data, "|") rows := strings.SplitN(data, "|", 8)
if len(rows) != 8 { if len(rows) < 8 {
return GraphItem{}, fmt.Errorf("Failed parsing grap line:%s - Should containt 8 datafields", s) return GraphItem{}, fmt.Errorf("Failed parsing grap line:%s - Should containt 8 datafields", s)
} }

Loading…
Cancel
Save