A remote can have a annexUrl configured, that is used by git-annex instead of its usual url. (Similar to pushUrl.)
This commit is contained in:
parent
3e07780bf8
commit
9fa9214106
6 changed files with 44 additions and 8 deletions
|
@ -24,7 +24,7 @@ findSpecialRemotes s = do
|
|||
return $ map construct $ remotepairs g
|
||||
where
|
||||
remotepairs r = M.toList $ M.filterWithKey match $ Git.configMap r
|
||||
construct (k,_) = Git.repoRemoteNameSet Git.repoFromUnknown k
|
||||
construct (k,_) = Git.repoRemoteNameFromKey Git.repoFromUnknown k
|
||||
match k _ = startswith "remote." k && endswith (".annex-"++s) k
|
||||
|
||||
{- Sets up configuration for a special remote in .git/config. -}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue