Skip to content

Commit ba52a66

Browse files
committed
revert change in commit_page
1 parent 961956b commit ba52a66

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

templates/repo/commit_page.tmpl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,14 @@
5252
</div>
5353
<div class="content">
5454
<p id="cherry-pick-content" class="branch-dropdown"></p>
55-
5655
<form method="get">
5756
{{/*FIXME: CurrentRefShortName seems not making sense here (old code),
5857
because the "commit page" has no "$.BranchName" info, so only using DefaultBranch should be enough */}}
5958
{{template "repo/branch_dropdown" dict
6059
"Repository" .Repository
6160
"ShowTabBranches" true
6261
"CurrentRefType" "branch"
63-
"CurrentRefShortName" (or $.RefName $.Repository.DefaultBranch)
62+
"CurrentRefShortName" (or $.BranchName $.Repository.DefaultBranch)
6463
"RefFormActionTemplate" (print "{RepoLink}/_cherrypick/" .CommitID "/{RefShortName}")
6564
}}
6665
<input type="hidden" id="cherry-pick-type" name="cherry-pick-type"><br>

0 commit comments

Comments
 (0)