some reorg and further remote generalization
This commit is contained in:
parent
28bf28a73c
commit
6b5918c295
10 changed files with 154 additions and 117 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue