From 15870dcc7ea863e779e8229c59e930b1f56f20b3 Mon Sep 17 00:00:00 2001 From: Sandy Carter Date: Mon, 27 Oct 2014 11:30:23 -0400 Subject: [PATCH] [FIX] runbot: remove trailing '.git' in repo base The base field is used to compose URL (e.g. "https://%s/pulls" % repo.base). The URL given by github can contains trailing '.git' so this should be removed. --- runbot/runbot.py | 1 + 1 file changed, 1 insertion(+) diff --git a/runbot/runbot.py b/runbot/runbot.py index a593337a..d1eab0fd 100644 --- a/runbot/runbot.py +++ b/runbot/runbot.py @@ -169,6 +169,7 @@ class runbot_repo(osv.osv): result = {} for repo in self.browse(cr, uid, ids, context=context): name = re.sub('.+@', '', repo.name) + name = re.sub('.git$', '', name) name = name.replace(':','/') result[repo.id] = name return result