diff options
author | Joey Hess <joey@kitenet.net> | 2012-11-06 16:08:36 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-11-06 16:08:36 -0400 |
commit | bc1d3479d755fd4c33f678c3081484dd9282e789 (patch) | |
tree | 4168f62280428fd3893eda31e2acc4f3a23d6c6d /Assistant/XMPP/Git.hs | |
parent | 4d709ee813293281e41216bb819f845dadd508b0 (diff) |
cleanup
Diffstat (limited to 'Assistant/XMPP/Git.hs')
-rw-r--r-- | Assistant/XMPP/Git.hs | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/Assistant/XMPP/Git.hs b/Assistant/XMPP/Git.hs index ea14e09cc..37535d01c 100644 --- a/Assistant/XMPP/Git.hs +++ b/Assistant/XMPP/Git.hs @@ -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 = |