0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-22 05:53:02 +01:00

Tag-webhooks are useless without shasums

This commit is contained in:
Kim "BKC" Carlbäcker 2016-11-29 07:58:01 +01:00
parent abf6c3a8e3
commit f364522468

View file

@ -565,8 +565,10 @@ func CommitRepoAction(opts CommitRepoActionOptions) error {
}
case ActionPushTag: // Create
shaSum := git.OpenRepository(repo.RepoPath()).GetTagCommitID(refName)
return PrepareWebhooks(repo, HookEventCreate, &api.CreatePayload{
Ref: refName,
Sha: shaSum,
RefType: "tag",
Repo: apiRepo,
Sender: apiPusher,