summaryrefslogtreecommitdiff
path: root/Annex
diff options
context:
space:
mode:
Diffstat (limited to 'Annex')
-rw-r--r--Annex/Ssh.hs6
1 files changed, 6 insertions, 0 deletions
diff --git a/Annex/Ssh.hs b/Annex/Ssh.hs
index a0aae2b7e..294270e43 100644
--- a/Annex/Ssh.hs
+++ b/Annex/Ssh.hs
@@ -5,6 +5,8 @@
- Licensed under the GNU GPL version 3 or higher.
-}
+{-# LANGUAGE CPP #-}
+
module Annex.Ssh (
sshParams,
sshCleanup,
@@ -52,9 +54,13 @@ sshInfo (host, port) = ifM caching
, return (Nothing, [])
)
where
+#ifdef WITH_OLD_SSH
+ caching = return False
+#else
caching = fromMaybe SysConfig.sshconnectioncaching
. Git.Config.isTrue
<$> getConfig (annexConfig "sshcaching") ""
+#endif
cacheParams :: FilePath -> [CommandParam]
cacheParams socketfile =