Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatija Čupić <matteeyah@gmail.com>2018-10-26 15:53:04 +0300
committerMatija Čupić <matteeyah@gmail.com>2018-10-26 15:53:04 +0300
commit0079fa19ce493da761a07f3dca2a3caf0a2476d7 (patch)
treef9cad427f6db91c9cfa625fd500c68c33231e88d /lib/gitlab/cache
parent2864c1eeb89fdc57cc7e11c8f842322abdd6fe3b (diff)
Remove cache_sha parameter
Diffstat (limited to 'lib/gitlab/cache')
-rw-r--r--lib/gitlab/cache/ci/project_pipeline_status.rb4
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)