Add support for bare repositories

This request addresses the issue where if the project is a bare repository, we won't be able to run tests or look at the build config.