From 6b5918c295715d0599005c9367f5dab5468169c5 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sun, 27 Mar 2011 21:43:25 -0400 Subject: some reorg and further remote generalization --- Content.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Content.hs') diff --git a/Content.hs b/Content.hs index 7aa30f7ff..88e8dbc00 100644 --- a/Content.hs +++ b/Content.hs @@ -40,6 +40,7 @@ import Utility import StatFS import Key import DataUnits +import Config {- Checks if a given key is currently present in the gitAnnexLocation. -} inAnnex :: Key -> Annex Bool @@ -121,7 +122,7 @@ checkDiskSpace = checkDiskSpace' 0 checkDiskSpace' :: Integer -> Key -> Annex () checkDiskSpace' adjustment key = do g <- Annex.gitRepo - r <- Annex.repoConfig g "diskreserve" "" + r <- getConfig g "diskreserve" "" let reserve = case readSize dataUnits r of Nothing -> megabyte Just v -> v -- cgit v1.2.3