summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2020-02-24 12:48:30 +0800
committerGitHub <noreply@github.com>2020-02-24 01:48:30 -0300
commitb51d7c459e65cd91c12859a37171a8d3c1fbb8ed (patch)
tree28f758db45f8f7e242614c32db0531aa5d1c3935 /modules
parentd3b6f001febb7bbb804adae3f025225a55f1f702 (diff)
downloadgitea-b51d7c459e65cd91c12859a37171a8d3c1fbb8ed.tar.gz
gitea-b51d7c459e65cd91c12859a37171a8d3c1fbb8ed.zip
Fix webhook bug (#10427) (#10432)
Co-authored-by: techknowlogick <matti@mdranta.net>
Diffstat (limited to 'modules')
-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 e0801445d8..47112b92ab 100644
--- a/modules/notification/webhook/webhook.go
+++ b/modules/notification/webhook/webhook.go
@@ -689,12 +689,12 @@ func (m *webhookNotifier) NotifyDeleteRef(pusher *models.User, repo *models.Repo
if err := webhook_module.PrepareWebhooks(repo, models.HookEventDelete, &api.DeletePayload{
Ref: refName,
- RefType: "branch",
+ RefType: refType,
PusherType: api.PusherTypeUser,
Repo: apiRepo,
Sender: apiPusher,
}); err != nil {
- log.Error("PrepareWebhooks.(delete branch): %v", err)
+ log.Error("PrepareWebhooks.(delete %s): %v", refType, err)
}
}