save state before message

to avoid long delay after
This commit is contained in:
Joey Hess 2011-06-24 02:33:44 -04:00
parent 49d77156ac
commit 50354a4916

View file

@ -22,6 +22,7 @@ import qualified Branch
import Messages import Messages
import Utility import Utility
import Locations import Locations
import Content
olddir :: Git.Repo -> FilePath olddir :: Git.Repo -> FilePath
olddir g olddir g
@ -56,6 +57,8 @@ upgrade = do
Git.run g "rm" [Param "-r", Param "-f", Param "-q", File (olddir g)] Git.run g "rm" [Param "-r", Param "-f", Param "-q", File (olddir g)]
unless bare $ gitAttributesUnWrite g unless bare $ gitAttributesUnWrite g
saveState
unless bare $ do unless bare $ do
showLongNote $ showLongNote $
"git-annex branch created\n" ++ "git-annex branch created\n" ++