Skip to content

Commit 253fdfb

Browse files
zeripathsapk
authored andcommitted
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
1 parent fd1b2a3 commit 253fdfb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/notification/webhook/webhook.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -573,9 +573,9 @@ func (m *webhookNotifier) NotifyCreateRef(pusher *models.User, repo *models.Repo
573573
return
574574
}
575575

576-
shaSum, err := gitRepo.GetBranchCommitID(refName)
576+
shaSum, err := gitRepo.GetRefCommitID(refFullName)
577577
if err != nil {
578-
log.Error("GetBranchCommitID[%s]: %v", refFullName, err)
578+
log.Error("GetRefCommitID[%s]: %v", refFullName, err)
579579
return
580580
}
581581

0 commit comments

Comments
 (0)