create journal directory in withJournalHandle
authorJoey Hess <joeyh@joeyh.name>
Wed, 21 Jun 2023 19:23:59 +0000 (15:23 -0400)
committerJoey Hess <joeyh@joeyh.name>
Wed, 21 Jun 2023 19:23:59 +0000 (15:23 -0400)
commit928b2a483911a527e4741fc14d63531431f9fb7d
tree62518efba2fdbbf0a696cb21458fb3ca43f7a964
parentaa8be9850a91ff1379f60e7d4cee3da99cc99b32
create journal directory in withJournalHandle

Fixes a crash by git-annex repair when .git/annex/journal/ does not exist.

Normally the journal directory is created before withJournalHandle gets
run, but git-annex repair can be run in a situation where it does not
exist.
Annex/Journal.hs
CHANGELOG
doc/bugs/git-annex-repair_claims_success_then_failure.mdwn
doc/bugs/git-annex-repair_claims_success_then_failure/comment_1_de8dfda0bc321e573ab9d17aec1ecb84._comment [new file with mode: 0644]