]> git.notmuchmail.org Git - notmuch/commit
CLI/new: drop the write lock to run the pre-new hook.
authorDavid Bremner <david@tethera.net>
Fri, 19 Mar 2021 01:58:02 +0000 (22:58 -0300)
committerDavid Bremner <david@tethera.net>
Fri, 19 Mar 2021 01:58:02 +0000 (22:58 -0300)
commita9f74aeeb9ade477d5b80c1c2700945d6c50adb1
tree633ba076d59bd991c3f66311cbaf2dfbb291d105
parent7d286f0272feb08aea8c1bee0b0ec6cd9766aee7
CLI/new: drop the write lock to run the pre-new hook.

This fixes a bug reported in [1]. In principle it could be possible
avoid one of these reopens, but it complicates the logic in main with
respect to creating new databases.

[1]: id:9C1993DF-84BD-4199-A9C8-BADA98498812@bubblegen.co.uk
notmuch-new.c
test/T400-hooks.sh