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

(d680164f11)
This commit is contained in:
Philippe Kueck 2017-03-16 12:41:19 +01:00 committed by Lunny Xiao
parent 65eea82c3e
commit 2b5e4b4d96

View File

@ -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)
} }