summaryrefslogtreecommitdiff
path: root/Config.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-05-19 10:22:43 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-05-19 10:22:43 -0400
commit0093a456e869b5250735ef4ec790faac115d9142 (patch)
treeb56fd7643fa54935c45e9f6f4f3fa861177b3c0a /Config.hs
parenta1885bd11607d8668d70f81eaafa25e5341e8e8c (diff)
test suite saved my bacon
git config reading memoization shouldn't be used when changing config
Diffstat (limited to 'Config.hs')
-rw-r--r--Config.hs3
1 files changed, 1 insertions, 2 deletions
diff --git a/Config.hs b/Config.hs
index bb57ab675..f579e40b2 100644
--- a/Config.hs
+++ b/Config.hs
@@ -21,8 +21,7 @@ data ConfigKey = ConfigKey String
setConfig :: ConfigKey -> String -> Annex ()
setConfig (ConfigKey key) value = do
inRepo $ Git.Command.run "config" [Param key, Param value]
- -- re-read git config and update the repo's state
- newg <- inRepo Git.Config.read
+ newg <- inRepo Git.Config.reRead
Annex.changeState $ \s -> s { Annex.repo = newg }
{- Unsets a git config setting. (Leaves it in state currently.) -}