aboutsummaryrefslogtreecommitdiff
path: root/modules/git_webhooks/gitea.py
diff options
context:
space:
mode:
Diffstat (limited to 'modules/git_webhooks/gitea.py')
-rw-r--r--modules/git_webhooks/gitea.py2
1 files changed, 1 insertions, 1 deletions
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"])