annex.version is now set to 4 for direct mode repositories

To avoid old versions of git-annex getting confused.

There is no upgrade required though.
We switch back to 3 when going from direct to indirect.
This commit is contained in:
Joey Hess 2013-02-26 15:13:10 -04:00
parent 9052efbc22
commit 2d9c046dea
8 changed files with 23 additions and 9 deletions

View file

@ -42,9 +42,9 @@ genDescription Nothing = do
initialize :: Maybe String -> Annex ()
initialize mdescription = do
prepUUID
setVersion defaultVersion
checkCrippledFileSystem
Annex.Branch.create
setVersion
gitPreCommitHookWrite
createInodeSentinalFile
u <- getUUID
@ -143,3 +143,4 @@ checkCrippledFileSystem = whenM (probeCrippledFileSystem) $ do
maybe noop (`toDirect` f) =<< isAnnexLink f
void $ liftIO clean
setDirect True
setVersion directModeVersion