mirror of
https://github.com/odoo/runbot.git
synced 2025-03-27 13:25:47 +07:00
parent
b4e680f095
commit
673c979930
@ -196,7 +196,7 @@ class runbot_repo(osv.osv):
|
|||||||
for repo in self.browse(cr, uid, ids, context=context):
|
for repo in self.browse(cr, uid, ids, context=context):
|
||||||
if not repo.token:
|
if not repo.token:
|
||||||
raise Exception('Repository does not have a token to authenticate')
|
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:
|
if match_object:
|
||||||
url = url.replace(':owner', match_object.group(2))
|
url = url.replace(':owner', match_object.group(2))
|
||||||
url = url.replace(':repo', match_object.group(3))
|
url = url.replace(':repo', match_object.group(3))
|
||||||
|
Loading…
Reference in New Issue
Block a user