Commit 979f1182 authored by Douwe Maan's avatar Douwe Maan

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

parent fbd75c35
......@@ -215,6 +215,8 @@ module Ci
end
def keep_around_commits
return unless project
project.repository.keep_around(self.sha)
project.repository.keep_around(self.before_sha)
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