diff options
author | Joey Hess <joey@kitenet.net> | 2013-02-26 15:13:10 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2013-02-26 15:13:10 -0400 |
commit | dce8bec196e978dfae4592f7308b750fcb97a609 (patch) | |
tree | 3b58331b82c7c094e4ee341a5a31437eab3ed129 /Command/Direct.hs | |
parent | e3ef9d058af30419924bcd2169aea3716ce53105 (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 'Command/Direct.hs')
-rw-r--r-- | Command/Direct.hs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Command/Direct.hs b/Command/Direct.hs index 0c007bb10..d847a3270 100644 --- a/Command/Direct.hs +++ b/Command/Direct.hs @@ -14,6 +14,7 @@ import qualified Git.Command import qualified Git.LsFiles import Config import Annex.Direct +import Annex.Version def :: [Command] def = [notBareRepo $ @@ -53,4 +54,5 @@ cleanup :: CommandCleanup cleanup = do showStart "direct" "" setDirect True + setVersion directModeVersion return True |