diff options
Diffstat (limited to 'Command')
-rw-r--r-- | Command/Direct.hs | 2 | ||||
-rw-r--r-- | Command/Indirect.hs | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/Command/Direct.hs b/Command/Direct.hs index 7ded712ae..7835988b4 100644 --- a/Command/Direct.hs +++ b/Command/Direct.hs @@ -17,7 +17,7 @@ import Annex.Direct import Annex.Version def :: [Command] -def = [notBareRepo $ +def = [notBareRepo $ noDaemonRunning $ command "direct" paramNothing seek SectionSetup "switch repository to direct mode"] diff --git a/Command/Indirect.hs b/Command/Indirect.hs index 9ce2751be..59972a66b 100644 --- a/Command/Indirect.hs +++ b/Command/Indirect.hs @@ -21,8 +21,9 @@ import Annex.Version import Init def :: [Command] -def = [notBareRepo $ command "indirect" paramNothing seek - SectionSetup "switch repository to indirect mode"] +def = [notBareRepo $ noDaemonRunning $ + command "indirect" paramNothing seek + SectionSetup "switch repository to indirect mode"] seek :: [CommandSeek] seek = [withNothing start] |