autoinit on upgrade
This commit is contained in:
parent
11935c4d6f
commit
f08149207c
1 changed files with 4 additions and 0 deletions
|
@ -9,6 +9,8 @@ module Command.Upgrade where
|
|||
|
||||
import Command
|
||||
import Upgrade
|
||||
import Annex.Version
|
||||
import Annex.Init
|
||||
|
||||
cmd :: Command
|
||||
cmd = dontCheck repoExists $ -- because an old version may not seem to exist
|
||||
|
@ -22,5 +24,7 @@ seek = withNothing start
|
|||
start :: CommandStart
|
||||
start = do
|
||||
showStart "upgrade" "."
|
||||
whenM (isNothing <$> getVersion) $ do
|
||||
initialize Nothing Nothing
|
||||
r <- upgrade False
|
||||
next $ next $ return r
|
||||
|
|
Loading…
Reference in a new issue