commit changes to git-annex branch on shutdown

This commit is contained in:
Joey Hess 2011-06-22 16:00:04 -04:00
parent 8166facaef
commit 17a09fccad

View file

@ -19,6 +19,7 @@ import Control.Monad (when)
import qualified Annex
import qualified AnnexQueue
import qualified GitRepo as Git
import qualified Branch
import Types
import Command
import BackendList
@ -102,6 +103,7 @@ startup = do
{- Cleanup actions. -}
shutdown :: Annex Bool
shutdown = do
Branch.commit "update"
AnnexQueue.flush False
liftIO $ Git.reap