...@@ -120,10 +120,10 @@ class Commit ...@@ -120,10 +120,10 @@ class Commit
end end
def prev_commit def prev_commit
parents.first parents.try :first
end end
def prev_commit_id def prev_commit_id
prev_commit.id prev_commit.try :id
end end
end end