summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorKim "BKC" Carlbäcker <kim.carlbacker@gmail.com>2016-11-29 07:58:01 +0100
committerKim "BKC" Carlbäcker <kim.carlbacker@gmail.com>2016-11-29 11:50:22 +0100
commitf3645224680e7a3f5477c0804aa2690d6262779f (patch)
tree77ab39ce480e8c7ae2f837cd4156efa09d899dda /models
parentabf6c3a8e31711b8a22525cabb892b5fcdab4e86 (diff)
downloadgitea-f3645224680e7a3f5477c0804aa2690d6262779f.tar.gz
gitea-f3645224680e7a3f5477c0804aa2690d6262779f.zip
Tag-webhooks are useless without shasums
Diffstat (limited to 'models')
-rw-r--r--models/action.go2
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,