When adding files to an adjusted branch set up by --unlock-present, add them unlocked...
authorJoey Hess <joeyh@joeyh.name>
Mon, 25 Jan 2021 17:55:01 +0000 (13:55 -0400)
committerJoey Hess <joeyh@joeyh.name>
Thu, 28 Jan 2021 16:47:46 +0000 (12:47 -0400)
commit6f78497572e14d604adf0212fc19170e68aa755e
tree6ddfcd33ae6ec01debcda20d639744cf4e69c10c
parentdb1e6c06252b2184486e22dd1981690f691b70a9
When adding files to an adjusted branch set up by --unlock-present, add them unlocked, not locked

Missed this when implementing it because of the default case catching
the new constructor. So, removed that default case to make sure
future types of adjusted branches don't make the same mistake.

Complicated by git-annex addurl --fast which adds the file whose content
is not present, so it needs to stay unlocked when on such a branch.

This commit was sponsored by Brock Spratlen on Patreon.
Annex/Ingest.hs
CHANGELOG
Command/Add.hs
Command/Import.hs
doc/bugs/adjustedbranchrefresh_ignored_by_git_annex_add.mdwn
doc/bugs/adjustedbranchrefresh_ignored_by_git_annex_add/comment_2_da0e37920a879bdb9df3fef87d52a10c._comment [new file with mode: 0644]