bare repo upgrade support
This commit is contained in:
parent
1443fcfe02
commit
a4bc3d6f38
1 changed files with 13 additions and 9 deletions
|
@ -57,17 +57,21 @@ upgrade :: Annex Bool
|
|||
upgrade = do
|
||||
showSideAction "Upgrading object directory layout v1 to v2..."
|
||||
|
||||
g <- Annex.gitRepo
|
||||
if Git.repoIsLocalBare g
|
||||
then do
|
||||
moveContent
|
||||
else do
|
||||
moveContent
|
||||
updateSymlinks
|
||||
moveLocationLogs
|
||||
|
||||
setVersion
|
||||
|
||||
-- add new line to auto-merge hashed location logs
|
||||
-- this commits, so has to come after the upgrade
|
||||
g <- Annex.gitRepo
|
||||
liftIO $ Command.Init.gitAttributesWrite g
|
||||
|
||||
setVersion
|
||||
return True
|
||||
|
||||
moveContent :: Annex ()
|
||||
|
|
Loading…
Reference in a new issue