diff options
author | Matija Čupić <matteeyah@gmail.com> | 2018-10-26 14:53:04 +0200 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2018-10-26 14:53:04 +0200 |
commit | 0079fa19ce493da761a07f3dca2a3caf0a2476d7 (patch) | |
tree | f9cad427f6db91c9cfa625fd500c68c33231e88d /lib | |
parent | 2864c1eeb89fdc57cc7e11c8f842322abdd6fe3b (diff) | |
download | gitlab-ce-0079fa19ce493da761a07f3dca2a3caf0a2476d7.tar.gz |
Remove cache_sha parameter
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/cache/ci/project_pipeline_status.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/cache/ci/project_pipeline_status.rb b/lib/gitlab/cache/ci/project_pipeline_status.rb index 99fe7d3a252..dfbb83f7bb9 100644 --- a/lib/gitlab/cache/ci/project_pipeline_status.rb +++ b/lib/gitlab/cache/ci/project_pipeline_status.rb @@ -41,8 +41,8 @@ module Gitlab end end - def self.cache_key_for_project(project, cache_sha = project.commit&.sha) - "#{Gitlab::Redis::Cache::CACHE_NAMESPACE}:projects/#{project.id}/pipeline_status/#{cache_sha}" + def self.cache_key_for_project(project) + "#{Gitlab::Redis::Cache::CACHE_NAMESPACE}:projects/#{project.id}/pipeline_status/#{project.commit&.sha}" end def self.update_for_pipeline(pipeline) |