I don't understand. Why does having two commit IDs with the exact same code cause problems.
A green “Verified” badge on GitHub is supposed to mean that a trusted author signed it
The author did sign it. It is the exact same code.
An attacker can reissue the same signed code under a fresh ID that’s still verified to slip past.
To split past what? At best it seems that they would be able to have a different ID for the exact same code, which seems harmless? Slightly confusing at worst.
Nix also doesn't use PGP signatures, it requires a separate hash of the resulting commit (the files with the .git directory stripped by default).