diff options
author | Douwe Maan <douwe@gitlab.com> | 2017-10-16 15:14:42 +0000 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2017-10-16 15:14:42 +0000 |
commit | 38ff8cd13d447825d74e9496cb9c72bedb6e0f7e (patch) | |
tree | 96a1a9f8c87813dca67608385ec67784d1626e36 /lib/api/repositories.rb | |
parent | 07e330896755b5a84f92042e7437ab78dfeeaae4 (diff) | |
parent | 771b777ab57d1c8d323ecc08a9e2cdc4f6a01e0b (diff) | |
download | gitlab-ce-38ff8cd13d447825d74e9496cb9c72bedb6e0f7e.tar.gz |
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.rb | 4 |
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! |