diff options
author | Joey Hess <joey@kitenet.net> | 2012-04-20 14:57:57 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-04-20 16:06:10 -0400 |
commit | 262017e17d466599f5b17313d69c995e844d59c6 (patch) | |
tree | a45989539579f2183df2a7ef6c9a24de338183e4 /Command | |
parent | c908bd3b97eb84bbd8399951a1cf0ece4d824ea2 (diff) |
export a more generalized checkDiskSpace
Diffstat (limited to 'Command')
-rw-r--r-- | Command/Unlock.hs | 3 |
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 |