Fix bare repo bug