Bug fix: annex.version did not get set on automatic upgrade to v5 direct mode repo, so the upgrade was performed repeatedly, slowing commands down.

This commit is contained in:
Joey Hess 2013-11-26 12:54:50 -04:00
parent 33ebdaebd6
commit 3e9db00d2d
3 changed files with 13 additions and 6 deletions

View file

@ -25,8 +25,4 @@ start :: CommandStart
start = do
showStart "upgrade" "."
r <- upgrade False
ifM isDirect
( setVersion directModeVersion
, setVersion defaultVersion
)
next $ next $ return r