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:
authorDouwe Maan <douwe@gitlab.com>2017-10-16 18:14:42 +0300
committerDouwe Maan <douwe@gitlab.com>2017-10-16 18:14:42 +0300
commit38ff8cd13d447825d74e9496cb9c72bedb6e0f7e (patch)
tree96a1a9f8c87813dca67608385ec67784d1626e36 /lib/api/repositories.rb
parent07e330896755b5a84f92042e7437ab78dfeeaae4 (diff)
parent771b777ab57d1c8d323ecc08a9e2cdc4f6a01e0b (diff)
Merge branch 'sha-handling' into 'master'
Adds requirements that supports anything in sha params Closes #26561 and #2709 See merge request gitlab-org/gitlab-ce!14462
Diffstat (limited to 'lib/api/repositories.rb')
-rw-r--r--lib/api/repositories.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/repositories.rb b/lib/api/repositories.rb
index ceee3226732..7887b886c03 100644
--- a/lib/api/repositories.rb
+++ b/lib/api/repositories.rb
@@ -57,7 +57,7 @@ module API
desc 'Get raw blob contents from the repository'
params do
- requires :sha, type: String, desc: 'The commit, branch name, or tag name'
+ requires :sha, type: String, desc: 'The commit hash'
end
get ':id/repository/blobs/:sha/raw' do
assign_blob_vars!
@@ -67,7 +67,7 @@ module API
desc 'Get a blob from the repository'
params do
- requires :sha, type: String, desc: 'The commit, branch name, or tag name'
+ requires :sha, type: String, desc: 'The commit hash'
end
get ':id/repository/blobs/:sha' do
assign_blob_vars!