diff options
author | Joey Hess <joey@kitenet.net> | 2011-03-30 15:15:46 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2011-03-30 15:15:46 -0400 |
commit | 0c73c08c1c0929f0ba53dcfb6d5d32a73a5f28d5 (patch) | |
tree | ec87415f92f3b766183108662fcec4bbf2bb665e /Remote/Directory.hs | |
parent | fdd455e913964200177530df085f2a7ad7c7f8b2 (diff) |
cost bugfixes
Diffstat (limited to 'Remote/Directory.hs')
-rw-r--r-- | Remote/Directory.hs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Remote/Directory.hs b/Remote/Directory.hs index cc37e496e..f97449eaa 100644 --- a/Remote/Directory.hs +++ b/Remote/Directory.hs @@ -35,9 +35,10 @@ remote = RemoteType { setup = directorySetup } -gen :: Git.Repo -> UUID -> Cost -> Maybe (M.Map String String) -> Annex (Remote Annex) -gen r u cst _ = do +gen :: Git.Repo -> UUID -> Maybe (M.Map String String) -> Annex (Remote Annex) +gen r u _ = do dir <- getConfig r "directory" (error "missing directory") + cst <- remoteCost r cheapRemoteCost return $ Remote { uuid = u, cost = cst, |