diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-10-31 12:12:13 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-10-31 12:12:13 +0300 |
commit | 6a5ef9b75d38f39cd2a6a2392fadfbd3b966b884 (patch) | |
tree | 56d7c715f2e312cb0ae47439385f2a6cba6fea5e /lib/gitlab | |
parent | 01cc900e7cc64797e39a7889032325d8c32bfe46 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab')
-rw-r--r-- | lib/gitlab/composer/version_index.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/gitlab/composer/version_index.rb b/lib/gitlab/composer/version_index.rb index bfa3112b795..0834fda9cf9 100644 --- a/lib/gitlab/composer/version_index.rb +++ b/lib/gitlab/composer/version_index.rb @@ -48,8 +48,7 @@ module Gitlab end def package_source(package) - use_http_url = package.project.public? || Feature.disabled?(:composer_use_ssh_source_urls, package.project) - git_url = use_http_url ? package.project.http_url_to_repo : package.project.ssh_url_to_repo + git_url = package.project.public? ? package.project.http_url_to_repo : package.project.ssh_url_to_repo { 'type' => 'git', |