Assert that repo directory is or is not bare as appropriate