summaryrefslogtreecommitdiff
path: root/Command/DropUnused.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-03-03 16:40:55 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-03-03 16:40:55 -0400
commitb5b78f26ecabdb74c05f8200de5f9d054da5cbae (patch)
treec7a914c0799a1606774a4653456b9033174e4d35 /Command/DropUnused.hs
parentb88637fff10d4d845404882e4ec95cfc071dcac0 (diff)
fix up commands that are trouble on bare repos
Most will just abort. init does a basic init and gives a command to run elsewhere to finish it.
Diffstat (limited to 'Command/DropUnused.hs')
-rw-r--r--Command/DropUnused.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Command/DropUnused.hs b/Command/DropUnused.hs
index 63216ce4f..594564cb7 100644
--- a/Command/DropUnused.hs
+++ b/Command/DropUnused.hs
@@ -29,7 +29,7 @@ seek = [withStrings start]
{- Drops unused content by number. -}
start :: CommandStartString
-start s = do
+start s = notBareRepo $ do
m <- readUnusedLog
case M.lookup s m of
Nothing -> return Nothing