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:
Joey Hess 2011-10-14 18:17:46 -04:00
parent 3e07780bf8
commit 9fa9214106
6 changed files with 44 additions and 8 deletions

View file

@ -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. -}