mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	There's a miss in #28138:  https://github.com/go-gitea/gitea/pull/28138/files#diff-2556e62ad7204a230c91927a3f2115e25a2b688240d0ee1de6d34f0277f37dfeR162 @lunny Not sure about the impact of this, but it will only effect 1.22, and maybe we should fix it ASAP. Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
This commit is contained in:
		| @@ -159,7 +159,7 @@ func HookPostReceive(ctx *gitea_context.PrivateContext) { | ||||
| 		} | ||||
|  | ||||
| 		// If we've pushed a branch (and not deleted it) | ||||
| 		if git.IsEmptyCommitID(newCommitID) && refFullName.IsBranch() { | ||||
| 		if !git.IsEmptyCommitID(newCommitID) && refFullName.IsBranch() { | ||||
| 			// First ensure we have the repository loaded, we're allowed pulls requests and we can get the base repo | ||||
| 			if repo == nil { | ||||
| 				repo = loadRepository(ctx, ownerName, repoName) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user