summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomasz Maczukin <tomasz@maczukin.pl>2015-12-31 12:45:10 +0100
committerTomasz Maczukin <tomasz@maczukin.pl>2015-12-31 16:28:36 +0100
commit531d79a1b3191b34a8844f9d58383003aafbe63b (patch)
tree7817d375276e25563122452a0cde667b35f3c6bc
parent979c04e60086bfd15ba477503b8553bbfd8fabd6 (diff)
downloadgitlab-ce-531d79a1b3191b34a8844f9d58383003aafbe63b.tar.gz
Fix "undefined method `ci_commit' for nil:NilClass" in Commit model
-rw-r--r--app/models/commit.rb2
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