"Shawn O. Pearce" [off-list ref] writes:
If we've already looked at a packfile and determined it isn't
valid/usable as a pack, we shouldn't try to use it again in
the future either. This avoids multiple error messages from
the same packfile.
I haven't looked your patch very closely, but two successive
"git-repack -a -d" would produce the packfile under the same
name, but with different parameters (--window or --depth), the
old .idx and new .pack may not match.
Can this be possible (time flows from top to bottom):
git-repack -a -d somebody else
produces a new .pack/.idx
mv new .pack to objects/pack
mmap .idx (old)
finds .pack does not match
mv new .idx to objects/pack
Is this something we care about?