diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-12-08 12:57:03 +0100 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-12-08 13:06:54 +0100 |
commit | 3f1e72a0cc18ac20481224c41cb2ad30dfbe7ab1 (patch) | |
tree | 91f172702f955205ee4efd94ba1b7456cf8fe40c /app/models/ci/commit.rb | |
parent | f523c3c6856ea3cee883579dfe5a9ad63274fd89 (diff) | |
download | gitlab-ce-3f1e72a0cc18ac20481224c41cb2ad30dfbe7ab1.tar.gz |
Memoize ci_yaml_file.
Diffstat (limited to 'app/models/ci/commit.rb')
-rw-r--r-- | app/models/ci/commit.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/ci/commit.rb b/app/models/ci/commit.rb index 971e899de84..cb90b0de63d 100644 --- a/app/models/ci/commit.rb +++ b/app/models/ci/commit.rb @@ -199,7 +199,7 @@ module Ci end def ci_yaml_file - gl_project.repository.blob_at(sha, '.gitlab-ci.yml').data + @ci_yaml_file ||= gl_project.repository.blob_at(sha, '.gitlab-ci.yml').data rescue nil end |