Bug: new empty files are not showing in diff

Created by: Mikulas

Tested on: Gitlab 2.8.2, git 1.7.2.5

Steps to reproduce:

cd $repo
touch new_file
git add .
git commit -am "add new empty file"
git push gitlab master

Visiting the proper commit page (e.g. repo/commits/41c5196) does then not show the new file.

Also, the Showing N changed files is omits this file as well.