This commit is contained in:
Joey Hess 2012-11-06 16:08:36 -04:00
parent fd1824c3f7
commit f6bcab3f57
2 changed files with 15 additions and 2 deletions

View file

@ -88,7 +88,6 @@ sshTranscript opts input = do
hClose readh
ok <- checkSuccessProcess pid
return ()
return (transcript, ok)
{- Ensure that the ssh public key doesn't include any ssh options, like

View file

@ -169,4 +169,18 @@ xmppGitRelay = do
{- Relays git receive-pack to and from XMPP, and propigates its exit status. -}
xmppReceivePack :: Assistant Bool
xmppReceivePack = error "TODO"
xmppReceivePack = do
feeder <- asIO1 toxmpp
reader <- asIO1 fromxmpp
ok <- liftIO $ do
(Just inh, Just outh, _, pid) <- createProcess $ p
{ std_in = CreatePipe
, std_out = CreatePipe
, std_err = Inherit
}
liftIO $ mapM_ killThread [t1, t2]
where
p = proc "git" params
toxmpp =
fromxmpp =