Run git ls-remote in a temp dir so it is not affected by projects local .git/config rewrites