Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorMarin Jankovski <maxlazio@gmail.com>2014-12-26 13:39:12 +0300
committerMarin Jankovski <maxlazio@gmail.com>2014-12-26 13:39:12 +0300
commit92eb3974ac28aff7c78f4ca0cbafbad842fc7160 (patch)
treedaa081e7ef8cd4d1527000dbc5a7aca5caefe9af /config
parent770b2a5cfbec1081756bfa2d8bf046b7b16bb638 (diff)
Add option to disable/enable developers push to already protected branches.
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb
index b6c5bb5b908..397329d311c 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -256,7 +256,7 @@ Gitlab::Application.routes.draw do
resources :branches, only: [:index, :new, :create, :destroy], constraints: { id: Gitlab::Regex.git_reference_regex }
resources :tags, only: [:index, :new, :create, :destroy], constraints: { id: Gitlab::Regex.git_reference_regex }
- resources :protected_branches, only: [:index, :create, :destroy], constraints: { id: Gitlab::Regex.git_reference_regex }
+ resources :protected_branches, only: [:index, :create, :update, :destroy], constraints: { id: Gitlab::Regex.git_reference_regex }
resources :refs, only: [] do
collection do