From 163f0e3451e493633429809a0952c43901d086a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mois=C3=A9s=20L=C3=B3pez?= Date: Fri, 29 Jul 2016 13:18:31 -0500 Subject: [PATCH] [REF] runbot: Support repository name with dot http://github.com/owner/repository.name.git to sent github statuses --- runbot/runbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runbot/runbot.py b/runbot/runbot.py index a0906e75..246cfe13 100644 --- a/runbot/runbot.py +++ b/runbot/runbot.py @@ -226,7 +226,7 @@ def github(self, cr, uid, ids, url, payload=None, delete=False, context=None): for repo in self.browse(cr, uid, ids, context=context): if not repo.token: raise Exception('Repository does not have a token to authenticate') - match_object = re.search('([^/]+)/([^/]+)/([^/.]+(.git)?)', repo.base) + match_object = re.search('([^/]+)/([^/]+)/([^/]+)', repo.base) if match_object: url = url.replace(':owner', match_object.group(2)) url = url.replace(':repo', match_object.group(3))