diff --git a/lib/api/branches.rb b/lib/api/branches.rb index b52d786e0209ade5cef92d4f9f6821f765c3dff2..edfdf842f850b44f69a7b6aee9d864556bd09a83 100644 --- a/lib/api/branches.rb +++ b/lib/api/branches.rb @@ -1,4 +1,5 @@ require 'mime/types' +require 'uri' module API # Projects API @@ -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 {