Skip to content

Commit

Permalink
fix go-gitea#1189, commit messages containing a pipe
Browse files Browse the repository at this point in the history
  • Loading branch information
philfry committed Mar 10, 2017
1 parent 74cde12 commit d680164
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 d680164

Please sign in to comment.