Commit 9d825723 authored by Kamil Trzcinski's avatar Kamil Trzcinski

Fix: broken git clone URL for CI runners

parent 54452412
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment