Commit 2d96c66d authored by Robert Speicher's avatar Robert Speicher

Merge branch 'ci-pipeline-doesnt-require-project' into 'master'

Don't fail when Ci::Pipeline doesn't have a project

Fixes https://sentry.gitlap.com/gitlab/gitlabcom/issues/8870/

See merge request !5288
parents 8ab8d3e3 979f1182
...@@ -215,6 +215,8 @@ module Ci ...@@ -215,6 +215,8 @@ module Ci
end end
def keep_around_commits def keep_around_commits
return unless project
project.repository.keep_around(self.sha) project.repository.keep_around(self.sha)
project.repository.keep_around(self.before_sha) project.repository.keep_around(self.before_sha)
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment