direct, indirect: Refuse to do anything when the assistant or git-annex watch daemon is running.
This commit is contained in:
parent
777349f0d3
commit
dc39da52f8
5 changed files with 21 additions and 6 deletions
|
@ -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"]
|
||||
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue