This commit is contained in:
Joey Hess 2012-06-12 13:54:00 -04:00
parent 2e5ea30981
commit d3b9b32f21

View file

@ -157,10 +157,8 @@ withStateMVar a = do
{- Runs an Annex action, using the state from the MVar. -}
runStateMVar :: MVar Annex.AnnexState -> Annex a -> IO a
runStateMVar mvar a = do
liftIO $ putStrLn "takeMVar"
startstate <- takeMVar mvar
!(r, newstate) <- Annex.run startstate a
liftIO $ putStrLn "putMVar"
putMVar mvar newstate
return r