use new getConfig

This commit is contained in:
Joey Hess 2012-03-22 00:23:15 -04:00
parent 4eb5112681
commit f1398b5583
8 changed files with 16 additions and 21 deletions

View file

@ -18,7 +18,7 @@ module Backend (
import System.Posix.Files
import Common.Annex
import qualified Git.Config
import Config
import qualified Annex
import Annex.CheckAttr
import Types.Key
@ -46,7 +46,7 @@ orderedList = do
l' <- (lookupBackendName name :) <$> standard
Annex.changeState $ \s -> s { Annex.backends = l' }
return l'
standard = fromRepo $ parseBackendList . Git.Config.get "annex.backends" ""
standard = parseBackendList <$> getConfig "annex.backends" ""
parseBackendList [] = list
parseBackendList s = map lookupBackendName $ words s