add remote.<name>.annex-checkuuid

Added remote.<name>.annex-checkuuid config, which can be set to false to
disable the default checking of the uuid of remotes that point to
directories. This can be useful to avoid unncessary drive spin-ups and
automounting.

Note that the UUID check is still done before writing to the repository,
to avoid writing to the wrong repository if it got relocated. Check is
also done before checkPresent to avoid getting confused about what is in
which repo. This is effectively the same as the use of git-annex-shell
with a uuid to check that the remote repository is the expected one.
Did not bother with the check for retrieveKeyFile because it doesn't
matter if the wrong repo is used then.

This commit was sponsored by Trenton Cronholm on Patreon.
This commit is contained in:
Joey Hess 2018-01-10 14:21:18 -04:00
parent c83c2acf9c
commit a28c541e23
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
6 changed files with 97 additions and 26 deletions

View file

@ -0,0 +1,13 @@
[[!comment format=mdwn
username="joey"
subject="""comment 4"""
date="2018-01-10T17:37:42Z"
content="""
Added remote.<name>.annex-checkuuid config, which can be set to false
to disable the default checking of the uuid. It will still check before
making any modification of the remote repository.
There may still be situations where using this kind of automount is suboptimal
with git-annex, as outlined in comment 3, but I think this is as far as it makes
sense to change git-annex to deal with them.
"""]]