summaryrefslogtreecommitdiff
path: root/Remote/Git.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2014-08-04 08:42:04 -0400
committerGravatar Joey Hess <joey@kitenet.net>2014-08-04 08:42:04 -0400
commit05bbd868072b293022b06354c990f5d8e674c0b6 (patch)
treed126a6e8a4a9fd07b5cce68e74b57af560ecdbca /Remote/Git.hs
parente4cd862e7451b56cdc2e88c8155a29b4c5d69dc8 (diff)
make testremote work with gcrypt repos
This involved making Remote.Gcrypt.gen expect a Repo with a regular, non-gcrypt path. Since tht is what's stored as the Remote's gitrepo, testremote can then modify it and feed it back into gen.
Diffstat (limited to 'Remote/Git.hs')
-rw-r--r--Remote/Git.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Remote/Git.hs b/Remote/Git.hs
index bf2228c49..c35f9f32a 100644
--- a/Remote/Git.hs
+++ b/Remote/Git.hs
@@ -127,7 +127,7 @@ configRead r = do
gen :: Git.Repo -> UUID -> RemoteConfig -> RemoteGitConfig -> Annex (Maybe Remote)
gen r u c gc
- | Git.GCrypt.isEncrypted r = Remote.GCrypt.gen r u c gc
+ | Git.GCrypt.isEncrypted r = Remote.GCrypt.chainGen r u c gc
| otherwise = go <$> remoteCost gc defcst
where
defcst = if repoCheap r then cheapRemoteCost else expensiveRemoteCost