mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-03 20:36:07 +01:00 
			
		
		
		
	Fix Notify Create Ref Error on tag creation (#8936)
* Fix Notify Create Ref Error on tag creation * Just use the provided full ref instead of BranchCommit
This commit is contained in:
		@@ -573,9 +573,9 @@ func (m *webhookNotifier) NotifyCreateRef(pusher *models.User, repo *models.Repo
 | 
				
			|||||||
		return
 | 
							return
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	shaSum, err := gitRepo.GetBranchCommitID(refName)
 | 
						shaSum, err := gitRepo.GetRefCommitID(refFullName)
 | 
				
			||||||
	if err != nil {
 | 
						if err != nil {
 | 
				
			||||||
		log.Error("GetBranchCommitID[%s]: %v", refFullName, err)
 | 
							log.Error("GetRefCommitID[%s]: %v", refFullName, err)
 | 
				
			||||||
		return
 | 
							return
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user