test suite saved my bacon
git config reading memoization shouldn't be used when changing config
This commit is contained in:
parent
a1885bd116
commit
0093a456e8
2 changed files with 21 additions and 13 deletions
|
@ -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.) -}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue