söndag 08 februari 2009 19:24:33 skrev Steffen Prohaska:
If you have a backup of the corrupted repository right after it got
corrupted, you can create an index by running "git index-pack" on
the pack that is lacking an index. This might rescue the lost
branches.
Yep, but the problem was that git gc was run again on the corrupted repo
so there was only the idx left. (L)Users...
Couldn't we make repack refuse to repack if it discovered left-overs from
a failed repack, or at least make it use the old pack files as reference instead
of ignoring them? Leaving too many objects is, after all, much better than
destroying the repo.
-- robin