From 18a3a186e9cdb69ee503d961d8285a341d818c48 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 1 Jan 2013 13:52:47 -0400 Subject: type based git config handling for remotes Still a couple of places that use git config ad-hoc, but this is most of it done. --- Remote/Glacier.hs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Remote/Glacier.hs') diff --git a/Remote/Glacier.hs b/Remote/Glacier.hs index 05cdf8978..04b70e2f1 100644 --- a/Remote/Glacier.hs +++ b/Remote/Glacier.hs @@ -37,8 +37,8 @@ remote = RemoteType { setup = glacierSetup } -gen :: Git.Repo -> UUID -> RemoteConfig -> Annex Remote -gen r u c = new <$> remoteCost r veryExpensiveRemoteCost +gen :: Git.Repo -> UUID -> RemoteConfig -> RemoteGitConfig -> Annex Remote +gen r u c gc = new <$> remoteCost gc veryExpensiveRemoteCost where new cst = encryptableRemote c (storeEncrypted this) @@ -58,6 +58,7 @@ gen r u c = new <$> remoteCost r veryExpensiveRemoteCost whereisKey = Nothing, config = c, repo = r, + gitconfig = gc, localpath = Nothing, readonly = False, remotetype = remote -- cgit v1.2.3