diff --git a/app/services/git_push_service.rb b/app/services/git_push_service.rb index b45ca0a5e6bcc0302ef38a6175c69547c68e0c21..c775f79ec291c88c2a194ab147b0a2078f026425 100644 --- a/app/services/git_push_service.rb +++ b/app/services/git_push_service.rb @@ -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