diff options
Diffstat (limited to 'Command.hs')
-rw-r--r-- | Command.hs | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/Command.hs b/Command.hs index 478dfdc39..8225f7b1b 100644 --- a/Command.hs +++ b/Command.hs @@ -17,7 +17,6 @@ module Command ( doCommand, whenAnnexed, ifAnnexed, - notBareRepo, isBareRepo, numCopies, numCopiesCheck, @@ -97,12 +96,6 @@ whenAnnexed a file = ifAnnexed file (a file) (return Nothing) ifAnnexed :: FilePath -> ((Key, Backend) -> Annex a) -> Annex a -> Annex a ifAnnexed file yes no = maybe no yes =<< Backend.lookupFile file -notBareRepo :: Annex a -> Annex a -notBareRepo a = do - whenM isBareRepo $ - error "You cannot run this subcommand in a bare repository." - a - isBareRepo :: Annex Bool isBareRepo = fromRepo Git.repoIsLocalBare |