summaryrefslogtreecommitdiff
path: root/Init.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-02-26 15:13:10 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-02-26 15:13:10 -0400
commitdce8bec196e978dfae4592f7308b750fcb97a609 (patch)
tree3b58331b82c7c094e4ee341a5a31437eab3ed129 /Init.hs
parente3ef9d058af30419924bcd2169aea3716ce53105 (diff)
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.
Diffstat (limited to 'Init.hs')
-rw-r--r--Init.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Init.hs b/Init.hs
index 2c1bf4ef9..358a54e81 100644
--- a/Init.hs
+++ b/Init.hs
@@ -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