diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-03-24 15:36:03 -0700 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-03-24 15:36:03 -0700 |
commit | eb2ce79d2e1d0e4e16052d630468925a6c87f725 (patch) | |
tree | 02684450da3620845e3cc444052fccdfd535d8ae | |
parent | 3a602c8432fe6c72f6ed1a7e2314317bfceb33ba (diff) | |
parent | 862e1e6f178d11473319225de51c25b72174f45b (diff) | |
download | gitlab-ce-eb2ce79d2e1d0e4e16052d630468925a6c87f725.tar.gz |
Merge pull request #9012 from dantudor/patch-1
Unescape branch param to delete
-rw-r--r-- | lib/api/branches.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/api/branches.rb b/lib/api/branches.rb index b52d786e020..edfdf842f85 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 { |