From 5cd1c7b163f9083e4e57463e7c952ac5a192ae04 Mon Sep 17 00:00:00 2001 From: ericLemanissier Date: Wed, 19 Feb 2025 11:21:45 +0100 Subject: [PATCH] git graph: don't show detached commits --- services/repository/gitgraph/graph.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/repository/gitgraph/graph.go b/services/repository/gitgraph/graph.go index 7e12be030fb35..2628a1a55af7e 100644 --- a/services/repository/gitgraph/graph.go +++ b/services/repository/gitgraph/graph.go @@ -29,7 +29,7 @@ func GetCommitGraph(r *git.Repository, page, maxAllowedColors int, hidePRRefs bo } if len(branches) == 0 { - graphCmd.AddArguments("--all") + graphCmd.AddArguments("--tags", "--branches") } graphCmd.AddArguments("-C", "-M", "--date=iso-strict").