From 531d79a1b3191b34a8844f9d58383003aafbe63b Mon Sep 17 00:00:00 2001 From: Tomasz Maczukin Date: Thu, 31 Dec 2015 12:45:10 +0100 Subject: Fix "undefined method `ci_commit' for nil:NilClass" in Commit model --- app/models/commit.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/commit.rb b/app/models/commit.rb index d200639f890..6b2771569d4 100644 --- a/app/models/commit.rb +++ b/app/models/commit.rb @@ -208,7 +208,7 @@ class Commit end def ci_commit - project.ci_commit(sha) + project.ci_commit(sha) if project end def last_build -- cgit v1.2.1