Fail if --from or --to is passed to commands that do not support them.
This commit is contained in:
parent
c879eb873e
commit
b955238ec7
36 changed files with 58 additions and 46 deletions
|
@ -19,12 +19,11 @@ import qualified Annex.Branch
|
|||
import Annex.Content
|
||||
|
||||
command :: [Command]
|
||||
command = [Command "uninit" paramPaths check seek
|
||||
command = [Command "uninit" paramPaths (check >> defaultChecks) seek
|
||||
"de-initialize git-annex and clean out repository"]
|
||||
|
||||
check :: Annex ()
|
||||
check = do
|
||||
needsRepo
|
||||
b <- current_branch
|
||||
when (b == Annex.Branch.name) $ error $
|
||||
"cannot uninit when the " ++ b ++ " branch is checked out"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue