From 6e47a1412175cbc00f44ea8dc663ad83331cfb6d Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 8 Apr 2014 13:41:36 -0400 Subject: cleaned up AnnexState handling in transports --- Config.hs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Config.hs') diff --git a/Config.hs b/Config.hs index 10d4fd190..32644263f 100644 --- a/Config.hs +++ b/Config.hs @@ -32,7 +32,10 @@ getConfigMaybe (ConfigKey key) = fromRepo $ Git.Config.getMaybe key setConfig :: ConfigKey -> String -> Annex () setConfig (ConfigKey key) value = do inRepo $ Git.Command.run [Param "config", Param key, Param value] - Annex.changeGitRepo =<< inRepo Git.Config.reRead + reloadConfig + +reloadConfig :: Annex () +reloadConfig = Annex.changeGitRepo =<< inRepo Git.Config.reRead {- Unsets a git config setting. (Leaves it in state currently.) -} unsetConfig :: ConfigKey -> Annex () -- cgit v1.2.3