'ref' doesn't always come in "a/b/c" format for Gitea
This commit is contained in:
parent
195381d2e5
commit
8d3a35e740
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ class Gitea(object):
|
||||||
|
|
||||||
def push(self, full_name, data):
|
def push(self, full_name, data):
|
||||||
outputs = []
|
outputs = []
|
||||||
branch = data["ref"].split("/", 2)[2]
|
branch = data["ref"].rpartition("/")[2]
|
||||||
branch = utils.irc.color(branch, colors.COLOR_BRANCH)
|
branch = utils.irc.color(branch, colors.COLOR_BRANCH)
|
||||||
author = utils.irc.bold(data["pusher"]["login"])
|
author = utils.irc.bold(data["pusher"]["login"])
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue