diff options
| author | 2019-09-24 13:00:08 +0100 | |
|---|---|---|
| committer | 2019-09-24 13:00:08 +0100 | |
| commit | 8d3a35e7404d652ece4a3abdc3c74e6767b96dda (patch) | |
| tree | e0871781315dc492c0ac2dab3923fba2349127a3 /modules/git_webhooks/gitea.py | |
| parent | utf8-decode translation data (diff) | |
| signature | ||
'ref' doesn't always come in "a/b/c" format for Gitea
Diffstat (limited to 'modules/git_webhooks/gitea.py')
| -rw-r--r-- | modules/git_webhooks/gitea.py | 2 |
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"]) |
