diff options
-rw-r--r-- | app/models/ci/project.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/models/ci/project.rb b/app/models/ci/project.rb index f0a8fc703b5..24f70171094 100644 --- a/app/models/ci/project.rb +++ b/app/models/ci/project.rb @@ -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 |