This commit is contained in:
Joey Hess 2017-08-17 12:05:30 -04:00
parent 801c636caf
commit 05ef86fcf3
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -0,0 +1,19 @@
[[!comment format=mdwn
username="joey"
subject="""comment 2"""
date="2017-08-17T15:59:13Z"
content="""
Cost settings only affect sort order, they don't allow completely blocking
use of a remote.
I feel that it would be perhaps the wrong design to extend cost settings
into blocking a remote.
There's also the `remote.<name>.annex-start-command` hook. However,
failure to run its command does not prevent git-annex from trying to access
a remote.
I think it would be reasonable to add a hook
`remote.<name>.annex-check-command`. If set, the command would have
to succed, or git-annex would refuse to use the remote.
"""]]