summaryrefslogtreecommitdiff
path: root/app/services/git_push_service.rb
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2015-11-09 16:48:03 +0100
committerKamil Trzcinski <ayufan@ayufan.eu>2015-11-13 10:52:50 +0100
commit6384c757b7ce6d1c0c3e2a3828b0cfac26dfb7f9 (patch)
tree8d6b5db2f275eb8ebb28f9ebd2beb2b492bb357e /app/services/git_push_service.rb
parent37465f44b40df9709507fda7a022f1907b23d53f (diff)
downloadgitlab-ce-6384c757b7ce6d1c0c3e2a3828b0cfac26dfb7f9.tar.gz
Expose CI enable option in project features
- Enable CI by default for all new projects
Diffstat (limited to 'app/services/git_push_service.rb')
-rw-r--r--app/services/git_push_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/git_push_service.rb b/app/services/git_push_service.rb
index 3de7bb9dcaa..ccb6b97858c 100644
--- a/app/services/git_push_service.rb
+++ b/app/services/git_push_service.rb
@@ -60,7 +60,7 @@ class GitPushService
# If CI was disabled but .gitlab-ci.yml file was pushed
# we enable CI automatically
- if !project.gitlab_ci? && gitlab_ci_yaml?(newrev)
+ if !project.builds_enabled? && gitlab_ci_yaml?(newrev)
project.enable_ci
end