Note the malicious m4 build scripts were not checked into git, but only put in the released tar balls. You can see the original content here:
https://salsa.debian.org/debian/xz-utils/-/tree/debian/5.6.0...
https://salsa.debian.org/debian/xz-utils/-/tree/debian/5.6.0...
https://git.rootprojects.org/root/xz/commit/6e636819e8f07033...
https://salsa.debian.org/debian/xz-utils/-/blob/debian/5.6.0...