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

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