Added support for bare repositories resolve ornicar/php-git-repo#45

Signed-off-by: Josemi Liébana <office@josemi-liebana.com>