Better error message when trying to use a git remote that has annex.ignore set.

This commit is contained in:
Joey Hess 2013-08-22 12:01:53 -04:00
parent 9ab3010100
commit 74034ec781
4 changed files with 28 additions and 6 deletions

View file

@ -18,6 +18,9 @@ import Config.Cost
type UnqualifiedConfigKey = String
data ConfigKey = ConfigKey String
instance Show ConfigKey where
show (ConfigKey s) = s
{- Looks up a setting in git config. -}
getConfig :: ConfigKey -> String -> Annex String
getConfig (ConfigKey key) def = fromRepo $ Git.Config.get key def