mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-29 10:57:44 +09:00 
			
		
		
		
	* Fixes issue #19603 (Not able to merge commit in PR when branches content is same, but different commit id) * fill HeadCommitID in PullRequest * compare real commits ID as check for merging * based on @zeripath patch in #19738
This commit is contained in:
		
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							b7c6ec91ba
						
					
				
				
					commit
					8420c1bf4c
				
			| @@ -89,7 +89,7 @@ func CheckPullMergable(stdCtx context.Context, doer *user_model.User, perm *acce | ||||
| 			return ErrIsWorkInProgress | ||||
| 		} | ||||
|  | ||||
| 		if !pr.CanAutoMerge() { | ||||
| 		if !pr.CanAutoMerge() && !pr.IsEmpty() { | ||||
| 			return ErrNotMergableState | ||||
| 		} | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user