Skip to content
Snippets Groups Projects
Commit eb2ce79d authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Merge pull request #9012 from dantudor/patch-1

Unescape branch param to delete
parents 3a602c84 862e1e6f
No related branches found
No related tags found
No related merge requests found
require 'mime/types'
require 'uri'
 
module API
# Projects API
Loading
Loading
@@ -103,7 +104,7 @@ module API
delete ":id/repository/branches/:branch" do
authorize_push_project
result = DeleteBranchService.new(user_project, current_user).
execute(params[:branch])
execute(URI.unescape(params[:branch]))
 
if result[:status] == :success
{
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment