Skip to content

Commit

Permalink
Merge pull request #106 from vauxoo-dev/9.0-oca-https-moy
Browse files Browse the repository at this point in the history
[FIX] runbot_travis2docker: Fix compatibility for url without https prefix
  • Loading branch information
pedrobaeza committed Nov 11, 2016
2 parents fb9d4cb + 227ebb0 commit 028cc61
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion runbot_travis2docker/models/runbot_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,12 @@ def checkout(self, cr, uid, ids, context=None):
branch_short_name = build.branch_id.name.replace(
'refs/heads/', '', 1).replace('refs/pull/', 'pull/', 1)
t2d_path = os.path.join(build.repo_id.root(), 'travis2docker')
repo_name = build.repo_id.name
if not (repo_name.startswith('https://') or
repo_name.startswith('git@')):
repo_name = 'https://' + repo_name
sys.argv = [
'travisfile2dockerfile', build.repo_id.name,
'travisfile2dockerfile', repo_name,
branch_short_name, '--root-path=' + t2d_path,
]
try:
Expand Down

0 comments on commit 028cc61

Please sign in to comment.