tweak
This commit is contained in:
parent
1468ef4bfe
commit
06add92bce
|
@ -221,7 +221,7 @@ spin hn hst = do
|
||||||
, std_out = UseHandle toh }
|
, std_out = UseHandle toh }
|
||||||
(Nothing, Nothing, Nothing, h) <- createProcess p
|
(Nothing, Nothing, Nothing, h) <- createProcess p
|
||||||
unlessM ((==) ExitSuccess <$> waitForProcess h) $
|
unlessM ((==) ExitSuccess <$> waitForProcess h) $
|
||||||
warningMessage "git send-pack failed"
|
warningMessage "git upload-pack failed"
|
||||||
-- no more protocol possible after
|
-- no more protocol possible after
|
||||||
-- git push
|
-- git push
|
||||||
Just NeedGitClone -> do
|
Just NeedGitClone -> do
|
||||||
|
@ -324,7 +324,6 @@ gitPush hin hout = void $ fromstdin `concurrently` tostdout
|
||||||
connect fromh toh = do
|
connect fromh toh = do
|
||||||
b <- B.hGetSome fromh 40960
|
b <- B.hGetSome fromh 40960
|
||||||
unless (B.null b) $ do
|
unless (B.null b) $ do
|
||||||
hPutStrLn stderr $ show ("got", fromh, b)
|
|
||||||
B.hPut toh b
|
B.hPut toh b
|
||||||
hFlush toh
|
hFlush toh
|
||||||
connect fromh toh
|
connect fromh toh
|
||||||
|
|
Loading…
Reference in New Issue