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

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAchilleas Pipinellis <axil@gitlab.com>2021-08-13 12:05:17 +0300
committerMarcel Amirault <4155490-marcel.amirault@users.noreply.gitlab.com>2021-08-13 12:05:17 +0300
commitf9438b44225d02de6b95284d32a59bf4bf0b6633 (patch)
tree2bf1de2c1ca1d55ffa321c26572cedbfb28b3cde /lib/task_helpers.rb
parent4a6ba405ea380a7e0846091c679597bce2644d46 (diff)
Add redirects raketask
Diffstat (limited to 'lib/task_helpers.rb')
-rw-r--r--lib/task_helpers.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/task_helpers.rb b/lib/task_helpers.rb
index 358169b4..85a53c95 100644
--- a/lib/task_helpers.rb
+++ b/lib/task_helpers.rb
@@ -69,5 +69,5 @@ def default_branch(repo)
# https://docs.gitlab.com/ee/api/README.html#namespaced-path-encoding
url_encoded_path = repo.sub('https://gitlab.com/', '').sub('.git', '').gsub('/', '%2F')
- `curl https://gitlab.com/api/v4/projects/#{url_encoded_path} | jq --raw-output .default_branch`.tr("\n", '')
+ `curl --silent https://gitlab.com/api/v4/projects/#{url_encoded_path} | jq --raw-output .default_branch`.tr("\n", '')
end