added method to detect bare repos