make repair interruption safe
authorJoey Hess <joeyh@joeyh.name>
Tue, 29 Jun 2021 16:57:19 +0000 (12:57 -0400)
committerJoey Hess <joeyh@joeyh.name>
Tue, 29 Jun 2021 17:14:28 +0000 (13:14 -0400)
commit199391befe03c3700e4b5c4f75f91b7bff30db78
treeccdcec329c9ce1ed7bf5201b7897faf07381ac80
parenta492553ecae0c164f89ffb465ab2750481644386
make repair interruption safe

Fixed bug that interrupting git-annex repair (or assistant) while it was
fixing repository corruption would lose objects that were contained in pack
files.

Unpack all pack files and move objects into place *before* deleting the
pack files. The old approach moved the pack files to a temp directory
before unpacking them, which was not interruption safe.

Sponsored-By: Jochen Bartl on Patreon
CHANGELOG
Git/Repair.hs
doc/bugs/Git_repos_corrupt_themselves/comment_16_586e591a1e3cc53fd0108da91492c5c2._comment [new file with mode: 0644]