summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Command/DropKey.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Command/DropKey.hs b/Command/DropKey.hs
index cac955b4a..b63d481bf 100644
--- a/Command/DropKey.hs
+++ b/Command/DropKey.hs
@@ -35,7 +35,7 @@ start key = do
error "dropkey can cause data loss; use --force if you're sure you want to do this"
perform :: Key -> CommandPerform
-perform key = do
+perform key = lockContent key $ do
removeAnnex key
next $ cleanup key