We now infer this by checking if the directory exists, and by reading the git config. It's a bit slower, but it's a far better method. I can add a cache later, if it turns out to be too slow.