summaryrefslogtreecommitdiff
path: root/Annex/Ssh.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Annex/Ssh.hs')
-rw-r--r--Annex/Ssh.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/Annex/Ssh.hs b/Annex/Ssh.hs
index df9f0e410..47f0ee4f6 100644
--- a/Annex/Ssh.hs
+++ b/Annex/Ssh.hs
@@ -16,6 +16,7 @@ import Common.Annex
import Annex.LockPool
import qualified Git
import qualified Git.Config
+import qualified Build.SysConfig as SysConfig
{- Generates parameters to ssh to a given host (or user@host) on a given
- port, with connection caching. -}
@@ -37,7 +38,8 @@ sshParams (host, port) opts = go =<< sshInfo (host, port)
sshInfo :: (String, Maybe Integer) -> Annex (Maybe FilePath, [CommandParam])
sshInfo (host, port) = do
- caching <- Git.configTrue <$> fromRepo (Git.Config.get "annex.sshcaching" "true")
+ caching <- fromMaybe SysConfig.sshconnectioncaching . Git.configTrue
+ <$> fromRepo (Git.Config.get "annex.sshcaching" "")
if caching
then do
dir <- fromRepo gitAnnexSshDir