gitlabhq/gitlabhq — pull request #2148 by jojosch (2012-12-01 18:36:07+00:00)
Title: commit diff - check if prev_commit is not nil

fix for #2147

If the commit contains an image and is the first commit (prev_commit is nil) the error occurs.