summaryrefslogtreecommitdiff
path: root/Command
diff options
context:
space:
mode:
Diffstat (limited to 'Command')
-rw-r--r--Command/Direct.hs2
-rw-r--r--Command/Indirect.hs2
-rw-r--r--Command/Upgrade.hs2
3 files changed, 5 insertions, 1 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
diff --git a/Command/Indirect.hs b/Command/Indirect.hs
index ac97be753..8bf228a80 100644
--- a/Command/Indirect.hs
+++ b/Command/Indirect.hs
@@ -17,6 +17,7 @@ import qualified Annex
import Annex.Direct
import Annex.Content
import Annex.CatFile
+import Annex.Version
import Init
def :: [Command]
@@ -88,6 +89,7 @@ perform = do
cleanup :: CommandCleanup
cleanup = do
+ setVersion defaultVersion
showStart "indirect" ""
showEndOk
return True
diff --git a/Command/Upgrade.hs b/Command/Upgrade.hs
index b39fcd99c..d1c1eb3b0 100644
--- a/Command/Upgrade.hs
+++ b/Command/Upgrade.hs
@@ -23,5 +23,5 @@ start :: CommandStart
start = do
showStart "upgrade" "."
r <- upgrade
- setVersion
+ setVersion defaultVersion
next $ next $ return r