Skip to content

Commit

Permalink
fix go-gitea#1189, commit messages containing a pipe (go-gitea#1218)
Browse files Browse the repository at this point in the history
  • Loading branch information
philfry authored and Richard Mahn committed Apr 18, 2017
1 parent 57db5a7 commit f6b8238
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 f6b8238

Please sign in to comment.