Fix nil blob mode

Bad blob entry keyword is used, so the blob mode is nil everywhere.

This PR fix that and add some tests about filemode (regular / executable / symlink).

The following Merge Request must be accepted to have spec working well: https://gitlab.com/gitlab-org/gitlab-git-test/merge_requests/1

Thanks.