summaryrefslogtreecommitdiff
path: root/Command/Unlock.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-04-20 14:57:57 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-04-20 16:06:10 -0400
commit262017e17d466599f5b17313d69c995e844d59c6 (patch)
treea45989539579f2183df2a7ef6c9a24de338183e4 /Command/Unlock.hs
parentc908bd3b97eb84bbd8399951a1cf0ece4d824ea2 (diff)
export a more generalized checkDiskSpace
Diffstat (limited to 'Command/Unlock.hs')
-rw-r--r--Command/Unlock.hs3
1 files changed, 1 insertions, 2 deletions
diff --git a/Command/Unlock.hs b/Command/Unlock.hs
index afee10145..aeb270516 100644
--- a/Command/Unlock.hs
+++ b/Command/Unlock.hs
@@ -34,8 +34,7 @@ start file (key, _) = do
perform :: FilePath -> Key -> CommandPerform
perform dest key = do
unlessM (inAnnex key) $ error "content not present"
-
- checkDiskSpace key
+ unlessM (checkDiskSpace Nothing key 0) $ error "cannot unlock"
src <- inRepo $ gitAnnexLocation key
tmpdest <- fromRepo $ gitAnnexTmpLocation key