Skip to content

Commit d680164

Browse files
committed
fix #1189, commit messages containing a pipe
1 parent 74cde12 commit d680164

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

models/graph.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ func graphItemFromString(s string, r *git.Repository) (GraphItem, error) {
7878
return GraphItem{}, fmt.Errorf("Failed parsing grap line:%s. Expect 1 or two fields", s)
7979
}
8080

81-
rows := strings.Split(data, "|")
82-
if len(rows) != 8 {
81+
rows := strings.SplitN(data, "|", 8)
82+
if len(rows) < 8 {
8383
return GraphItem{}, fmt.Errorf("Failed parsing grap line:%s - Should containt 8 datafields", s)
8484
}
8585

0 commit comments

Comments
 (0)