aboutsummaryrefslogtreecommitdiff
path: root/Config.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-08-22 12:01:53 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-08-22 12:01:53 -0400
commit0768ec19e2484fc7dbc4d0fd6502f7934018ee09 (patch)
treec9b311afe6f70e9690136cf7a312ae7d13dad3dd /Config.hs
parente591a2aec9fcdfad2ee6303804165af433a77342 (diff)
Better error message when trying to use a git remote that has annex.ignore set.
Diffstat (limited to 'Config.hs')
-rw-r--r--Config.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/Config.hs b/Config.hs
index 4d93a2af5..c37481ead 100644
--- a/Config.hs
+++ b/Config.hs
@@ -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