summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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,