propellor spin
This commit is contained in:
parent
849421d91c
commit
bdbb1686df
|
@ -217,10 +217,13 @@ spin hn hst = do
|
||||||
Just NeedGitPush -> do
|
Just NeedGitPush -> do
|
||||||
sendMarked toh gitPushMarker ""
|
sendMarked toh gitPushMarker ""
|
||||||
let p = (proc "git" ["upload-pack", "."])
|
let p = (proc "git" ["upload-pack", "."])
|
||||||
{ std_in = UseHandle fromh
|
-- { std_in = UseHandle fromh
|
||||||
, std_out = UseHandle toh
|
{ std_out = UseHandle toh
|
||||||
}
|
}
|
||||||
(Nothing, Nothing, Nothing, h) <- createProcess p
|
(Nothing, Nothing, Nothing, h) <- createProcess p
|
||||||
|
forever $ do
|
||||||
|
b <- B.hGetSome fromh 40960
|
||||||
|
hPutStrLn stderr $ show ("<<<", b)
|
||||||
unlessM ((==) ExitSuccess <$> waitForProcess h) $
|
unlessM ((==) ExitSuccess <$> waitForProcess h) $
|
||||||
errorMessage "git upload-pack failed"
|
errorMessage "git upload-pack failed"
|
||||||
-- no more protocol possible after
|
-- no more protocol possible after
|
||||||
|
|
Loading…
Reference in New Issue