summaryrefslogtreecommitdiff
path: root/app/models/commit.rb
diff options
context:
space:
mode:
authorValery Sizov <valery@gitlab.com>2015-06-24 14:43:11 +0000
committerValery Sizov <valery@gitlab.com>2015-06-24 14:43:11 +0000
commita6454082c456d5824012444be0977c34b0d51a87 (patch)
treeb582a35ca80fd80f3a00816a7aaeb76d4f57c788 /app/models/commit.rb
parentaec639d33b404ed4e1e587ea181cd65af5e5314e (diff)
parent8164acebd7adfd3cc3e80f9750a4ce88e28399ce (diff)
downloadgitlab-ci-a6454082c456d5824012444be0977c34b0d51a87.tar.gz
Merge branch 'show_warning_about_yaml' into 'master'
Warning when .gitlab-ci.yml not found https://dev.gitlab.org/gitlab/gitlab-ci/issues/295 ![joxi_screenshot_1435155049429](https://gitlab.com/gitlab-org/gitlab-ci/uploads/83e34bba9bb7cb69d0fc663ee1077605/joxi_screenshot_1435155049429.png) See merge request !164
Diffstat (limited to 'app/models/commit.rb')
-rw-r--r--app/models/commit.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/commit.rb b/app/models/commit.rb
index 46900ab..215afdd 100644
--- a/app/models/commit.rb
+++ b/app/models/commit.rb
@@ -215,7 +215,7 @@ class Commit < ActiveRecord::Base
end
def config_processor
- @config_processor ||= GitlabCiYamlProcessor.new(push_data[:ci_yaml_file])
+ @config_processor ||= GitlabCiYamlProcessor.new(push_data[:ci_yaml_file] || project.generated_yaml_config)
end
def skip_ci?