Fix: broken git clone URL for CI runners

This commit is contained in:
Kamil Trzcinski 2015-10-01 11:42:41 +02:00
parent 54452412f7
commit 9d8257238e
1 changed files with 1 additions and 2 deletions

View File

@ -169,8 +169,7 @@ module Ci
# using http and basic auth
def repo_url_with_auth
auth = "gitlab-ci-token:#{token}@"
url = http_url_to_repo + ".git"
url.sub(/^https?:\/\//) do |prefix|
http_url_to_repo.sub(/^https?:\/\//) do |prefix|
prefix + auth
end
end