mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Fix wrong hint when deleting a branch successfully from pull request UI (#22673)
Fix #18785
This commit is contained in:
		@@ -1395,7 +1395,7 @@ func CleanUpPullRequest(ctx *context.Context) {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func deleteBranch(ctx *context.Context, pr *issues_model.PullRequest, gitRepo *git.Repository) {
 | 
			
		||||
	fullBranchName := pr.HeadRepo.Owner.Name + "/" + pr.HeadBranch
 | 
			
		||||
	fullBranchName := pr.HeadRepo.FullName() + ":" + pr.HeadBranch
 | 
			
		||||
	if err := repo_service.DeleteBranch(ctx.Doer, pr.HeadRepo, gitRepo, pr.HeadBranch); err != nil {
 | 
			
		||||
		switch {
 | 
			
		||||
		case git.IsErrBranchNotExist(err):
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user