diff options
author | Giteabot <teabot@gitea.io> | 2025-02-20 09:11:43 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-20 09:11:43 +0800 |
commit | 8844e62cb4fc4eb8be9d4a6be6da1fb10d62fa1e (patch) | |
tree | 4f2ba79547b4f86242265bf97f61bfd94e52f6a1 /modules/gitgraph | |
parent | de7026528b974ac36f8d3add7f51f82497c2d2ea (diff) | |
download | gitea-8844e62cb4fc4eb8be9d4a6be6da1fb10d62fa1e.tar.gz gitea-8844e62cb4fc4eb8be9d4a6be6da1fb10d62fa1e.zip |
git graph: don't show detached commits (#33645) (#33650)
Backport #33645 by ericLemanissier
Co-authored-by: ericLemanissier <ericLemanissier@users.noreply.github.com>
Diffstat (limited to 'modules/gitgraph')
-rw-r--r-- | modules/gitgraph/graph.go | 2 |
1 files changed, 1 insertions, 1 deletions
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"). |