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

This commit is contained in:
Douwe Maan 2016-07-15 17:33:30 -05:00
parent fbd75c35fd
commit 979f1182ae

View file

@ -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