diff --git a/modules/git_webhooks/gitea.py b/modules/git_webhooks/gitea.py index 536925ac..321e82ec 100644 --- a/modules/git_webhooks/gitea.py +++ b/modules/git_webhooks/gitea.py @@ -124,7 +124,7 @@ class Gitea(object): def push(self, full_name, data): outputs = [] - branch = data["ref"].split("/", 2)[2] + branch = data["ref"].rpartition("/")[2] branch = utils.irc.color(branch, colors.COLOR_BRANCH) author = utils.irc.bold(data["pusher"]["login"])