summaryrefslogtreecommitdiff
path: root/Command
diff options
context:
space:
mode:
Diffstat (limited to 'Command')
-rw-r--r--Command/Adjust.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/Command/Adjust.hs b/Command/Adjust.hs
index 7646cfa57..2ea39edd2 100644
--- a/Command/Adjust.hs
+++ b/Command/Adjust.hs
@@ -9,6 +9,7 @@ module Command.Adjust where
import Command
import Annex.AdjustedBranch
+import Annex.Version
cmd :: Command
cmd = notBareRepo $ notDirect $
@@ -33,5 +34,7 @@ seek = commandAction . start
start :: Adjustment -> CommandStart
start adj = do
+ unlessM versionSupportsAdjustedBranch $
+ error "Adjusted branches are only supported in v6 or newer repositories."
enterAdjustedBranch adj
next $ next $ return True