diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-09-29 10:44:53 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-09-29 10:47:04 +0200 |
commit | 0d877d91e7556edfcdc29ad77491740da3cc7661 (patch) | |
tree | 72b1e8b4358b3fcd53875436e4c76f82e750f188 /app/models/ci/commit.rb | |
parent | 9498a40052603a0687a0fa6370e50e97bc078301 (diff) | |
download | gitlab-ce-ci-commits-to-projects.tar.gz |
Make ensure_gitlab_ci_project return ci_project or create a new oneci-commits-to-projects
Diffstat (limited to 'app/models/ci/commit.rb')
-rw-r--r-- | app/models/ci/commit.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/app/models/ci/commit.rb b/app/models/ci/commit.rb index a6556690b9a..6d048779cde 100644 --- a/app/models/ci/commit.rb +++ b/app/models/ci/commit.rb @@ -37,11 +37,7 @@ module Ci end def project - unless @project - gl_project.ensure_ci_project - @project = gl_project.gitlab_ci_project - end - @project + @project ||= gl_project.ensure_gitlab_ci_project end def project_id |