mirror of
				https://gitcode.com/gitea/gitea.git
				synced 2025-11-04 04:14:26 +08:00 
			
		
		
		
	fix showing pull request link when delete a branch (#5166)
This commit is contained in:
		
				
					committed by
					
						
						techknowlogick
					
				
			
			
				
	
			
			
			
						parent
						
							fb14458010
						
					
				
				
					commit
					a2ee2a3c67
				
			@ -214,7 +214,7 @@ func runHookPostReceive(c *cli.Context) error {
 | 
				
			|||||||
			log.GitLogger.Error(2, "Update: %v", err)
 | 
								log.GitLogger.Error(2, "Update: %v", err)
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		if strings.HasPrefix(refFullName, git.BranchPrefix) {
 | 
							if newCommitID != git.EmptySHA && strings.HasPrefix(refFullName, git.BranchPrefix) {
 | 
				
			||||||
			branch := strings.TrimPrefix(refFullName, git.BranchPrefix)
 | 
								branch := strings.TrimPrefix(refFullName, git.BranchPrefix)
 | 
				
			||||||
			repo, pullRequestAllowed, err := private.GetRepository(repoID)
 | 
								repo, pullRequestAllowed, err := private.GetRepository(repoID)
 | 
				
			||||||
			if err != nil {
 | 
								if err != nil {
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user