propellor spin

This commit is contained in:
Joey Hess 2014-11-18 16:47:41 -04:00
parent 849421d91c
commit bdbb1686df
Failed to extract signature
1 changed files with 5 additions and 2 deletions

View File

@ -217,10 +217,13 @@ spin hn hst = do
Just NeedGitPush -> do
sendMarked toh gitPushMarker ""
let p = (proc "git" ["upload-pack", "."])
{ std_in = UseHandle fromh
, std_out = UseHandle toh
-- { std_in = UseHandle fromh
{ std_out = UseHandle toh
}
(Nothing, Nothing, Nothing, h) <- createProcess p
forever $ do
b <- B.hGetSome fromh 40960
hPutStrLn stderr $ show ("<<<", b)
unlessM ((==) ExitSuccess <$> waitForProcess h) $
errorMessage "git upload-pack failed"
-- no more protocol possible after