The project was already compromised, the Git repository isn't any more trustworthy than the tarball.
And if there is any relevant lesson from the xz case isn't to trust Git more than tarballs but - as someone else mentioned already - tarballs should be fully reproducible from Git.