diff options
| author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-02-02 21:34:16 -0800 |
|---|---|---|
| committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-02-02 21:34:16 -0800 |
| commit | 7d48205c1a472c07969e4dc43965fa3090b84376 (patch) | |
| tree | 2d656569885ea8c9b281b3595954846c2e6dd800 /lib | |
| parent | 7558fe98759ec28c2fd97ae10cb1610a1a6c38cd (diff) | |
| download | gitlab-ce-7d48205c1a472c07969e4dc43965fa3090b84376.tar.gz | |
Rubocop: comment indentation
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/gitlab/git_access.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/git_access.rb b/lib/gitlab/git_access.rb index ea96d04c5ab..0530923b202 100644 --- a/lib/gitlab/git_access.rb +++ b/lib/gitlab/git_access.rb @@ -113,8 +113,8 @@ module Gitlab # we dont allow force push to protected branch if forced_push?(project, oldrev, newrev) :force_push_code_to_protected_branches - # and we dont allow remove of protected branch elsif newrev == Gitlab::Git::BLANK_SHA + # and we dont allow remove of protected branch :remove_protected_branches elsif project.developers_can_push_to_protected_branch?(branch_name) :push_code |
