diff options
author | zeripath <art27@cantab.net> | 2019-11-12 23:49:40 +0000 |
---|---|---|
committer | Antoine GIRARD <sapk@users.noreply.github.com> | 2019-11-13 00:49:40 +0100 |
commit | 253fdfb7fab565172e150cc1ca2ac2701fa744c7 (patch) | |
tree | 104787ead95a421ad602850ca65ad4aeb77ae184 /modules | |
parent | fd1b2a31f3937b08c56f5117d998e6f01f7f59a6 (diff) | |
download | gitea-253fdfb7fab565172e150cc1ca2ac2701fa744c7.tar.gz gitea-253fdfb7fab565172e150cc1ca2ac2701fa744c7.zip |
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
Diffstat (limited to 'modules')
-rw-r--r-- | modules/notification/webhook/webhook.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/notification/webhook/webhook.go b/modules/notification/webhook/webhook.go index 8059ec1c00..27afbba7ab 100644 --- a/modules/notification/webhook/webhook.go +++ b/modules/notification/webhook/webhook.go @@ -573,9 +573,9 @@ func (m *webhookNotifier) NotifyCreateRef(pusher *models.User, repo *models.Repo return } - shaSum, err := gitRepo.GetBranchCommitID(refName) + shaSum, err := gitRepo.GetRefCommitID(refFullName) if err != nil { - log.Error("GetBranchCommitID[%s]: %v", refFullName, err) + log.Error("GetRefCommitID[%s]: %v", refFullName, err) return } |