aboutsummaryrefslogtreecommitdiff
path: root/Command/Indirect.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-04-22 16:41:46 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-04-22 16:41:46 -0400
commit3cf16ebe5ea70e79bc4e45214265009ef7b975d0 (patch)
treed751054a064714d10ae70d75688fa1a1b3e9483f /Command/Indirect.hs
parentafec3a563930bb402b66d4c3c4c4c9c0572b1aa1 (diff)
direct, indirect: Refuse to do anything when the assistant or git-annex watch daemon is running.
Diffstat (limited to 'Command/Indirect.hs')
-rw-r--r--Command/Indirect.hs5
1 files changed, 3 insertions, 2 deletions
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]