Check if a commit belongs to pipeline before trying to expire cache

This commit is contained in:
Toon Claes 2017-04-06 09:09:28 +02:00 committed by Kamil Trzcinski
parent f66e1c1734
commit e6571ed9f9
No known key found for this signature in database
GPG Key ID: 4505F5C7E12C6A5A
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ module Ci
store = Gitlab::EtagCaching::Store.new
store.touch(project_pipelines_path)
store.touch(commit_pipelines_path)
store.touch(commit_pipelines_path) if pipeline.commit
store.touch(new_merge_request_pipelines_path)
merge_requests_pipelines_paths.each { |path| store.touch(path) }
end