From 961956b800099f9272dc151700c82a166d37c7e2 Mon Sep 17 00:00:00 2001
From: yp05327 <576951401@qq.com>
Date: Thu, 9 Jan 2025 07:36:09 +0000
Subject: [PATCH 1/7] fix
---
templates/repo/commit_page.tmpl | 2 +-
templates/repo/commits.tmpl | 2 +-
templates/repo/home.tmpl | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/templates/repo/commit_page.tmpl b/templates/repo/commit_page.tmpl
index bc63db9b62713..4b48ecb7bde12 100644
--- a/templates/repo/commit_page.tmpl
+++ b/templates/repo/commit_page.tmpl
@@ -60,7 +60,7 @@
"Repository" .Repository
"ShowTabBranches" true
"CurrentRefType" "branch"
- "CurrentRefShortName" (or $.BranchName $.Repository.DefaultBranch)
+ "CurrentRefShortName" (or $.RefName $.Repository.DefaultBranch)
"RefFormActionTemplate" (print "{RepoLink}/_cherrypick/" .CommitID "/{RefShortName}")
}}
diff --git a/templates/repo/commits.tmpl b/templates/repo/commits.tmpl
index 7065bf33f4db1..8bebbdb7f1753 100644
--- a/templates/repo/commits.tmpl
+++ b/templates/repo/commits.tmpl
@@ -7,7 +7,7 @@