From 34b5436ae1af2735546bb519a950eabf4990212d Mon Sep 17 00:00:00 2001 From: mscherer Date: Thu, 2 Dec 2021 08:28:08 +0100 Subject: Refactor various strings (#17784) Fixes #16478 Co-authored-by: Gusted Co-authored-by: Gusted Co-authored-by: Lunny Xiao --- modules/gitgraph/graph.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/gitgraph/graph.go') diff --git a/modules/gitgraph/graph.go b/modules/gitgraph/graph.go index 8505678639..cf994bfd4c 100644 --- a/modules/gitgraph/graph.go +++ b/modules/gitgraph/graph.go @@ -29,7 +29,7 @@ func GetCommitGraph(r *git.Repository, page int, maxAllowedColors int, hidePRRef args = append(args, "--graph", "--date-order", "--decorate=full") if hidePRRefs { - args = append(args, "--exclude=refs/pull/*") + args = append(args, "--exclude="+git.PullPrefix+"*") } if len(branches) == 0 { -- cgit v1.2.3