Fix test for non-bare repo
Improve test error reporting
Revert travis debugging commits

This reverts commit ba5ce23cbd3358b836f1c3c54e47e9bf861b88cd.
Make sure nested bare repo has refs dir