Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/models/ci/project.rb3
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