Skip to content

Commit

Permalink
fix #1189, commit messages containing a pipe (#1203)
Browse files Browse the repository at this point in the history
  • Loading branch information
philfry authored and lunny committed Mar 11, 2017
1 parent ccc15b9 commit e2b2fd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions models/graph.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit e2b2fd6

Please sign in to comment.