diff options
Diffstat (limited to 'app/models/commit.rb')
-rw-r--r-- | app/models/commit.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/commit.rb b/app/models/commit.rb index f90c42672db..263e2f74296 100644 --- a/app/models/commit.rb +++ b/app/models/commit.rb @@ -120,10 +120,10 @@ class Commit end def prev_commit - parents.first + parents.try :first end def prev_commit_id - prev_commit.id + prev_commit.try :id end end |