Skip to content
Snippets Groups Projects
Commit 531d79a1 authored by Tomasz Maczukin's avatar Tomasz Maczukin
Browse files

Fix "undefined method `ci_commit' for nil:NilClass" in Commit model

parent 979c04e6
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -208,7 +208,7 @@ class Commit
end
 
def ci_commit
project.ci_commit(sha)
project.ci_commit(sha) if project
end
 
def last_build
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment