summaryrefslogtreecommitdiff
path: root/Command
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2015-12-11 13:50:31 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2015-12-11 13:50:31 -0400
commit69a64069bbe72421186d08a8fb28de889caac942 (patch)
tree536df96010e5c66edf583466ebf983b5451f3e28 /Command
parentd769454704555d7e969754de22e32fd7ed738aaa (diff)
parent1b710b96c201e7b9fbecdb876e282f75653dfdea (diff)
Merge branch 'master' into smudge
Diffstat (limited to 'Command')
-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)