Fixes symlinks omission from diff.

This fixes issue 1196: https://github.com/gitlabhq/gitlabhq/issues/1196