summaryrefslogtreecommitdiff
path: root/RemoteDaemon/Transport/Ssh.hs
diff options
context:
space:
mode:
Diffstat (limited to 'RemoteDaemon/Transport/Ssh.hs')
-rw-r--r--RemoteDaemon/Transport/Ssh.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/RemoteDaemon/Transport/Ssh.hs b/RemoteDaemon/Transport/Ssh.hs
index fdb75e871..772ae9771 100644
--- a/RemoteDaemon/Transport/Ssh.hs
+++ b/RemoteDaemon/Transport/Ssh.hs
@@ -36,7 +36,7 @@ transportUsingCmd cmd params rr@(RemoteRepo r gc) url h@(TransportHandle (LocalR
transportUsingCmd' cmd params rr url transporthandle ichan ochan
transportUsingCmd' :: FilePath -> [CommandParam] -> Transport
-transportUsingCmd' cmd params (RemoteRepo r _) url transporthandle ichan ochan =
+transportUsingCmd' cmd params (RemoteRepo r gc) url transporthandle ichan ochan =
robustConnection 1 $ do
(Just toh, Just fromh, Just errh, pid) <-
createProcess (proc cmd (toCommand params))
@@ -74,7 +74,7 @@ transportUsingCmd' cmd params (RemoteRepo r _) url transporthandle ichan ochan =
send (CONNECTED url)
handlestdout fromh
Just (SshRemote.CHANGED (ChangedRefs shas)) -> do
- whenM (checkNewShas transporthandle shas) $
+ whenM (checkShouldFetch gc transporthandle shas) $
fetch
handlestdout fromh
-- avoid reconnect on protocol error