gcrypt: Remove empty hash directories when dropping content
authorJoey Hess <joeyh@joeyh.name>
Fri, 21 Jul 2023 20:04:11 +0000 (16:04 -0400)
committerJoey Hess <joeyh@joeyh.name>
Fri, 21 Jul 2023 20:04:11 +0000 (16:04 -0400)
commit2807ab0a09cef9f7b07b23b2c639af6b3e14699f
tree582cc3166038b392e6adaf21d41443c8d189e188
parent3b34266e9e65c23f8be94c5240ea7b9befc6b5ba
gcrypt: Remove empty hash directories when dropping content

As was recently done with the directory special remote.

Note that the top directory passed to removeDirGeneric was changed to
avoid deleting .git/annex or .git/annex/objects if they ended up empty.

Sponsored-by: Brett Eisenberg on Patreon
CHANGELOG
Remote/GCrypt.hs