Added support for bare repositories

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