summaryrefslogtreecommitdiff
path: root/Command/Fsck.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2015-12-11 13:50:27 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2015-12-11 13:50:27 -0400
commit1b710b96c201e7b9fbecdb876e282f75653dfdea (patch)
treef7e02ac0077b13bde9036e0be2d54e84f3c358dc /Command/Fsck.hs
parentc4257a86ab67f1e08d6ff55bbc91e89858ba3fe7 (diff)
fsck: Failed to honor annex.diskreserve when checking a remote.
Diffstat (limited to 'Command/Fsck.hs')
-rw-r--r--Command/Fsck.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Command/Fsck.hs b/Command/Fsck.hs
index 5a11ce192..1531d2ab7 100644
--- a/Command/Fsck.hs
+++ b/Command/Fsck.hs
@@ -162,7 +162,7 @@ performRemote key file backend numcopies remote =
let cleanup = liftIO $ catchIO (removeFile tmp) (const noop)
cleanup
cleanup `after` a tmp
- getfile tmp = ifM (checkDiskSpace (Just tmp) key 0 True)
+ getfile tmp = ifM (checkDiskSpace (Just (takeDirectory tmp)) key 0 True)
( ifM (Remote.retrieveKeyFileCheap remote key (Just file) tmp)
( return (Just True)
, ifM (Annex.getState Annex.fast)