summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2017-08-17 12:05:30 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2017-08-17 12:05:30 -0400
commitd8ff26fd29753e06747d087a83c57d326f7cbca5 (patch)
treeb6a0bbc829bdee3192be71b4a8964b2ee8b84613
parentcd74459c38a9ab83c13a9ecb2baf6a89555ef31c (diff)
comment
-rw-r--r--doc/forum/Is_there_an___39__annex-cost__39___to_NEVER_access_remote__63__/comment_2_b95ce6b13ae45a2fca05260a7f77148f._comment19
1 files changed, 19 insertions, 0 deletions
diff --git a/doc/forum/Is_there_an___39__annex-cost__39___to_NEVER_access_remote__63__/comment_2_b95ce6b13ae45a2fca05260a7f77148f._comment b/doc/forum/Is_there_an___39__annex-cost__39___to_NEVER_access_remote__63__/comment_2_b95ce6b13ae45a2fca05260a7f77148f._comment
new file mode 100644
index 000000000..d5f78140c
--- /dev/null
+++ b/doc/forum/Is_there_an___39__annex-cost__39___to_NEVER_access_remote__63__/comment_2_b95ce6b13ae45a2fca05260a7f77148f._comment
@@ -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.
+"""]]