add annex-proxied
This makes git-annex sync and similar not treat proxied remotes as git syncable remotes. Also, display in git-annex info remote when the remote is proxied.
This commit is contained in:
parent
0c111fc96a
commit
b8016eeb65
7 changed files with 31 additions and 14 deletions
|
@ -827,7 +827,8 @@ listProxied proxies rs = concat <$> mapM go rs
|
|||
|
||||
annexconfigadjuster r' =
|
||||
let c = adduuid (configRepoUUID renamedr) $
|
||||
addurl (remoteConfig renamedr "url") $
|
||||
addurl $
|
||||
addproxied $
|
||||
inheritconfigs $ Git.fullconfig r'
|
||||
in r'
|
||||
{ Git.config = M.map Prelude.head c
|
||||
|
@ -837,8 +838,11 @@ listProxied proxies rs = concat <$> mapM go rs
|
|||
adduuid ck = M.insert ck
|
||||
[Git.ConfigValue $ fromUUID $ proxyRemoteUUID p]
|
||||
|
||||
addurl ck = M.insert ck
|
||||
addurl = M.insert (remoteConfig renamedr "url")
|
||||
[Git.ConfigValue $ encodeBS $ Git.repoLocation r]
|
||||
|
||||
addproxied = M.insert (remoteAnnexConfig renamedr "proxied")
|
||||
[Git.ConfigValue $ Git.Config.boolConfig' True]
|
||||
|
||||
inheritconfigs c = foldl' inheritconfig c proxyInheritedFields
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue