If it clones into /tmp the *entire* tree will either be reaped (upon reboot) or not.
But having just some files deleted from a git dir or git working dir is much more dangerous, because various git commands can treat files deleted from the working tree as deliberate changes to be committed, and files deleted from the git dir can render it unusable.