From 8844e62cb4fc4eb8be9d4a6be6da1fb10d62fa1e Mon Sep 17 00:00:00 2001 From: Giteabot Date: Thu, 20 Feb 2025 09:11:43 +0800 Subject: [PATCH] git graph: don't show detached commits (#33645) (#33650) Backport #33645 by ericLemanissier Co-authored-by: ericLemanissier --- modules/gitgraph/graph.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/gitgraph/graph.go b/modules/gitgraph/graph.go index 7e12be030f..2628a1a55a 100644 --- a/modules/gitgraph/graph.go +++ b/modules/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").