diff options
author | Tomasz Maczukin <tomasz@maczukin.pl> | 2015-12-31 12:45:10 +0100 |
---|---|---|
committer | Tomasz Maczukin <tomasz@maczukin.pl> | 2015-12-31 16:28:36 +0100 |
commit | 531d79a1b3191b34a8844f9d58383003aafbe63b (patch) | |
tree | 7817d375276e25563122452a0cde667b35f3c6bc | |
parent | 979c04e60086bfd15ba477503b8553bbfd8fabd6 (diff) | |
download | gitlab-ce-531d79a1b3191b34a8844f9d58383003aafbe63b.tar.gz |
Fix "undefined method `ci_commit' for nil:NilClass" in Commit model
-rw-r--r-- | app/models/commit.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |