diff options
author | Mark Fletcher <mark@gitlab.com> | 2018-01-19 23:07:44 +0300 |
---|---|---|
committer | Mark Fletcher <mark@gitlab.com> | 2018-01-19 23:07:44 +0300 |
commit | 5a160b05eda88728543a0a74a174fa5883877171 (patch) | |
tree | a22359f9e1a4f589cde5dc053c3ae22eca52bfd3 /lib/api | |
parent | ee58763158ed10f12a8fe7c089257a532fe6e724 (diff) |
Fix protected branches API to accept name parameter with dot
Diffstat (limited to 'lib/api')
-rw-r--r-- | lib/api/protected_branches.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/protected_branches.rb b/lib/api/protected_branches.rb index 614822509f0..c15c487deb4 100644 --- a/lib/api/protected_branches.rb +++ b/lib/api/protected_branches.rb @@ -2,7 +2,7 @@ module API class ProtectedBranches < Grape::API include PaginationParams - BRANCH_ENDPOINT_REQUIREMENTS = API::PROJECT_ENDPOINT_REQUIREMENTS.merge(branch: API::NO_SLASH_URL_PART_REGEX) + BRANCH_ENDPOINT_REQUIREMENTS = API::PROJECT_ENDPOINT_REQUIREMENTS.merge(name: API::NO_SLASH_URL_PART_REGEX) before { authorize_admin_project } |