Added support for bare repositories.