summaryrefslogtreecommitdiff
path: root/lib/api/commits.rb
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-03-14 18:08:50 +0100
committerRémy Coutable <remy@rymai.me>2017-03-14 18:08:50 +0100
commitc9abdadd7a08f972d5a12472f9f5ac443e37a6ac (patch)
treea95ddc11dcd4a2f08488e35e4340a62db669f7f6 /lib/api/commits.rb
parente52529e25c8f4b597bbf4ae2815f570b4e4a9898 (diff)
downloadgitlab-ce-c9abdadd7a08f972d5a12472f9f5ac443e37a6ac.tar.gz
Ensure dots in project path is allowed in the commits API
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'lib/api/commits.rb')
-rw-r--r--lib/api/commits.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/commits.rb b/lib/api/commits.rb
index 42401abfe0f..48939798900 100644
--- a/lib/api/commits.rb
+++ b/lib/api/commits.rb
@@ -10,7 +10,7 @@ module API
params do
requires :id, type: String, desc: 'The ID of a project'
end
- resource :projects do
+ resource :projects, requirements: { id: /.+/ } do
desc 'Get a project repository commits' do
success Entities::RepoCommit
end