diff options
author | Guilherme Vieira <guilherme@flipstudio.net> | 2017-09-23 10:21:32 -0300 |
---|---|---|
committer | Guilherme Vieira <guilherme@flipstudio.net> | 2017-10-12 18:46:41 -0300 |
commit | 771b777ab57d1c8d323ecc08a9e2cdc4f6a01e0b (patch) | |
tree | 63bc53b8c03078b5a40e3e67457d341cc5e337ff /lib/api/repositories.rb | |
parent | b14641579855a14398db260ab909ae77c164c883 (diff) | |
download | gitlab-ce-771b777ab57d1c8d323ecc08a9e2cdc4f6a01e0b.tar.gz |
Adds requirements that supports anything in sha params
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 2255fb1b70d..70f7bf32a71 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! |