mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 00:20:25 +08:00 
			
		
		
		
	Fix the wrong default branch name displayed by checkout (#25777)
Related: #22743 Before:  After: 
This commit is contained in:
		@@ -33,7 +33,7 @@
 | 
			
		||||
								{{if and $.IsWriter (not $.Repository.IsArchived) (not .IsDeleted)}}
 | 
			
		||||
									<button class="btn interact-bg show-create-branch-modal gt-p-3"
 | 
			
		||||
										data-modal="#create-branch-modal"
 | 
			
		||||
										data-branch-from="{{$.DefaultBranchBranch}}"
 | 
			
		||||
										data-branch-from="{{$.DefaultBranchBranch.DBBranch.Name}}"
 | 
			
		||||
										data-branch-from-urlcomponent="{{PathEscapeSegments $.DefaultBranchBranch.DBBranch.Name}}"
 | 
			
		||||
										data-tooltip-content="{{$.locale.Tr "repo.branch.new_branch_from" ($.DefaultBranchBranch.DBBranch.Name)}}"
 | 
			
		||||
									>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user