From 673c9799305b96e6e93b3f63d296c5b0f65a36c1 Mon Sep 17 00:00:00 2001 From: Sandy Date: Tue, 15 Jul 2014 11:11:59 -0400 Subject: [PATCH] Support repo names with `.git` suffix Fixes #17 --- runbot/runbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runbot/runbot.py b/runbot/runbot.py index 350e3bce..a3fe07f5 100644 --- a/runbot/runbot.py +++ b/runbot/runbot.py @@ -196,7 +196,7 @@ class runbot_repo(osv.osv): 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('([^/]+)/([^/]+)/([^/]+)', repo.base) + match_object = re.search('([^/]+)/([^/]+)/([^/.]+(.git)?)', repo.base) if match_object: url = url.replace(':owner', match_object.group(2)) url = url.replace(':repo', match_object.group(3))