Browse Source

fix #1189, commit messages containing a pipe (#1203)

tags/v1.2.0-rc1
Philippe Kueck Lunny Xiao 8 years ago
parent
commit
2748ff05f0
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      models/graph.go

+ 2
- 2
models/graph.go 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) 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) return GraphItem{}, fmt.Errorf("Failed parsing grap line:%s - Should containt 8 datafields", s)
} }




Loading…
Cancel
Save