Don't fail when Ci::Pipeline doesn't have a project
This commit is contained in:
parent
fbd75c35fd
commit
979f1182ae
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue