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:
authorKamil Trzcinski <ayufan@ayufan.eu>2015-10-01 12:42:41 +0300
committerKamil Trzcinski <ayufan@ayufan.eu>2015-10-01 12:42:41 +0300
commit9d8257238ee1a28d90958e6f8f43921b172f14a1 (patch)
tree7d27b5dbc0e2d196fac1579d81226ef57d95a6a8 /app/models
parent54452412f765d9e6e6166e105db9adbc7553aec2 (diff)
Fix: broken git clone URL for CI runners
Diffstat (limited to 'app/models')
-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