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