Don't regenerate MIDX when it doesn't change

git-repack(1) regenerates the MIDX even in cases where we know it won't change, which is a waste of compute. We should fix this.

See also 20251025191550.GA279793@coredump.intra.peff.net.