sshopts is never going to be null; the concat of it may be

This commit is contained in:
Joey Hess 2015-08-04 16:53:38 -04:00
parent 39b876e096
commit 3c971c414e

View file

@ -280,14 +280,14 @@ sshOptionsTo remote gc g
unchanged = return g
use opts = do
let sshopts =
let sshopts = concat
[ opts
, map Param (remoteAnnexSshOptions gc)
]
if null sshopts
then unchanged
else do
let val = toSshOptionsEnv (concat sshopts)
let val = toSshOptionsEnv sshopts
command <- liftIO programPath
liftIO $ do
g' <- addGitEnv g sshOptionsEnv val