diff options
author | Patrick Bajao <ebajao@gitlab.com> | 2019-03-07 04:09:37 +0300 |
---|---|---|
committer | Patrick Bajao <ebajao@gitlab.com> | 2019-03-07 07:47:31 +0300 |
commit | 333097d7652a863f1d328e4c6b86be5e3b570bbf (patch) | |
tree | 6e0b63ca34171a1d28248d262716c1bdaa988f1a /lib/gitlab/checks | |
parent | 20805bedfcb2de15a661c327d29b1305367d6167 (diff) |
Allow protected branch creation for empty project
Diffstat (limited to 'lib/gitlab/checks')
-rw-r--r-- | lib/gitlab/checks/branch_check.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/checks/branch_check.rb b/lib/gitlab/checks/branch_check.rb index bd305ace0a0..75b337a14cc 100644 --- a/lib/gitlab/checks/branch_check.rb +++ b/lib/gitlab/checks/branch_check.rb @@ -46,7 +46,7 @@ module Gitlab end end - if creation? && protected_branch_creation_enabled? + if creation? && protected_branch_creation_enabled? && !project.empty_repo? protected_branch_creation_checks elsif deletion? protected_branch_deletion_checks |