Skip to content
Snippets Groups Projects
Commit c821412e authored by Marco Wessel's avatar Marco Wessel
Browse files

indentation

parent b20fc141
No related branches found
No related tags found
1 merge request!314Allow configuring protection of default branch upon first push
Loading
Loading
@@ -34,7 +34,7 @@ class GitPushService
 
# Set protection on the default branch if configured
if (current_application_settings.default_branch_protection != PROTECTION_NONE)
developers_can_push = current_application_settings.default_branch_protection == PROTECTION_DEV_CAN_PUSH ? true : false
developers_can_push = current_application_settings.default_branch_protection == PROTECTION_DEV_CAN_PUSH ? true : false
project.protected_branches.create({ name: project.default_branch, developers_can_push: developers_can_push })
end
else
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment