From 992bf133823b6884e9fb1b320fd33d3fb337ee30 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 9 Nov 2011 19:47:04 -0400 Subject: lockContent in dropkey This is needed for drop --from and move --from to check the lock, as they do not use git-annex-shell inannex. --- Command/DropKey.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3