> To address this issue, after variable expansion is completed, any existing .git folder is removed from the directory before the git repository is initialized.

What happened to sandboxing the offending git invocation?