diff options
author | Kim "BKC" Carlbäcker <kim.carlbacker@gmail.com> | 2016-11-29 07:58:01 +0100 |
---|---|---|
committer | Kim "BKC" Carlbäcker <kim.carlbacker@gmail.com> | 2016-11-29 11:50:22 +0100 |
commit | f3645224680e7a3f5477c0804aa2690d6262779f (patch) | |
tree | 77ab39ce480e8c7ae2f837cd4156efa09d899dda /models | |
parent | abf6c3a8e31711b8a22525cabb892b5fcdab4e86 (diff) | |
download | gitea-f3645224680e7a3f5477c0804aa2690d6262779f.tar.gz gitea-f3645224680e7a3f5477c0804aa2690d6262779f.zip |
Tag-webhooks are useless without shasums
Diffstat (limited to 'models')
-rw-r--r-- | models/action.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/models/action.go b/models/action.go index 5312a1797f..aebc02be54 100644 --- a/models/action.go +++ b/models/action.go @@ -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, |