fix #1189, commit messages containing a pipe

This commit is contained in:
Philippe Kueck 2017-03-10 18:46:32 +01:00
parent 74cde12677
commit d680164f11
No known key found for this signature in database
GPG Key ID: E10E57D62DB57A3B

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)
}
rows := strings.Split(data, "|")
if len(rows) != 8 {
rows := strings.SplitN(data, "|", 8)
if len(rows) < 8 {
return GraphItem{}, fmt.Errorf("Failed parsing grap line:%s - Should containt 8 datafields", s)
}