Commit 57ce7124 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Fixed invalid commit show if git history broken

parent be35d29fc733
......@@ -260,7 +260,7 @@ def valid_repo?
def commit(commit_id = nil)
commit = if commit_id
repo.commits(commit_id).first
repo.commit(commit_id)
else
repo.commits.first
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment