aboutsummaryrefslogtreecommitdiff
path: root/modules/github/module.py
diff options
context:
space:
mode:
Diffstat (limited to 'modules/github/module.py')
-rw-r--r--modules/github/module.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/github/module.py b/modules/github/module.py
index 7766c18d..6085face 100644
--- a/modules/github/module.py
+++ b/modules/github/module.py
@@ -250,7 +250,10 @@ class Module(ModuleManager.BaseModule):
branch = None
if "ref" in data:
- branch = data["ref"].split("/", 2)[2]
+ if "/" in data["ref"]:
+ branch = data["ref"].split("/", 2)[2]
+ else:
+ branch = data["ref"]
hooks = self.bot.database.channel_settings.find_by_setting(
"github-hooks")