skip distributed migration to insecure key when annex.securehashesonly is set
authorJoey Hess <joeyh@joeyh.name>
Fri, 8 Dec 2023 16:39:18 +0000 (12:39 -0400)
committerJoey Hess <joeyh@joeyh.name>
Fri, 8 Dec 2023 16:41:50 +0000 (12:41 -0400)
commit51b974d9f03c080378cabdf0d70eec11146962af
tree8b66a05d46beb4a8ccaa72917e28c9c35a634c67
parentb65379a1076715c51fe575fa1b276a1e08672ca7
skip distributed migration to insecure key when annex.securehashesonly is set

This only avoids extra work and a warning messsage. It seems likely that
in such a situation, the user does not want migrations to insecure
hashes, and so best to ignore them as much as possible. If
the user merges a branch that switches annexed files to an insecure
hash, they will notice that the file contents are unavailable,
and git-annex get will tell them the problem then. So it does not seem
useful to have migrate --update also complain about it.
Command/Migrate.hs