summaryrefslogtreecommitdiff
path: root/Upgrade
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-06-24 02:33:44 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-06-24 02:33:44 -0400
commit50354a49163b8841af2024876a62e78b6caaa2b2 (patch)
tree7dd2d52b563eb15c457f4f58c8863512991a56df /Upgrade
parent49d77156ac75dd9459f3e2f2be3baa3ff3b172bc (diff)
save state before message
to avoid long delay after
Diffstat (limited to 'Upgrade')
-rw-r--r--Upgrade/V2.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/Upgrade/V2.hs b/Upgrade/V2.hs
index af8f15919..2372edb3d 100644
--- a/Upgrade/V2.hs
+++ b/Upgrade/V2.hs
@@ -22,6 +22,7 @@ import qualified Branch
import Messages
import Utility
import Locations
+import Content
olddir :: Git.Repo -> FilePath
olddir g
@@ -56,6 +57,8 @@ upgrade = do
Git.run g "rm" [Param "-r", Param "-f", Param "-q", File (olddir g)]
unless bare $ gitAttributesUnWrite g
+ saveState
+
unless bare $ do
showLongNote $
"git-annex branch created\n" ++