summaryrefslogtreecommitdiffstats
path: root/modules/notification/webhook/webhook.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/notification/webhook/webhook.go')
-rw-r--r--modules/notification/webhook/webhook.go4
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
}