Add annex-trustlevel configuration settings, which can be used to override the trust level of a remote.
This overrides the trust.log, and is overridden by the command-line trust parameters. It would have been nicer to have Logs.Trust.trustMap just look up the configuration for all remotes, but a dependency loop prevented that (Remotes depends on Logs.Trust in several ways). So instead, look up the configuration when building remotes, storing it in the same forcetrust field used for the command-line trust parameters.
This commit is contained in:
parent
9ffd97442b
commit
0d5c402210
7 changed files with 64 additions and 26 deletions
|
@ -606,6 +606,12 @@ Here are all the supported configuration settings.
|
|||
|
||||
git-annex caches UUIDs of remote repositories here.
|
||||
|
||||
* `remote.<name>.annex-trustlevel`
|
||||
|
||||
Configures a local trust level for the remote. This overrides the value
|
||||
configured by the trust and untrust commands. The value can be any of
|
||||
"trusted", "semitrusted" or "untrusted".
|
||||
|
||||
* `remote.<name>.annex-ssh-options`
|
||||
|
||||
Options to use when using ssh to talk to this remote.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue