summaryrefslogtreecommitdiffstats
path: root/models/graph.go
diff options
context:
space:
mode:
authorKjell Kvinge <kjell@kvinge.biz>2018-07-21 20:17:10 +0200
committertechknowlogick <techknowlogick@users.noreply.github.com>2018-07-21 14:17:09 -0400
commitbed623600d18dac84d17e41a47a8119098dc1d47 (patch)
tree13a8ef1aa28d3c722a80d9fb6f04ac1b62bb9169 /models/graph.go
parent5fa403c874ef32053f3e04fba7e7b1f605842900 (diff)
downloadgitea-bed623600d18dac84d17e41a47a8119098dc1d47.tar.gz
gitea-bed623600d18dac84d17e41a47a8119098dc1d47.zip
Accept 'Data:' in commit graph (#4487)
Diffstat (limited to 'models/graph.go')
-rw-r--r--models/graph.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/graph.go b/models/graph.go
index cfd583ca8b..8ecea9c093 100644
--- a/models/graph.go
+++ b/models/graph.go
@@ -66,7 +66,7 @@ func graphItemFromString(s string, r *git.Repository) (GraphItem, error) {
var ascii string
var data = "|||||||"
- lines := strings.Split(s, "DATA:")
+ lines := strings.SplitN(s, "DATA:", 2)
switch len(lines) {
case 1: