action message
This commit is contained in:
parent
511a728b38
commit
fc657d62cb
|
@ -214,17 +214,19 @@ spin hn hst = do
|
||||||
Just NeedPrivData -> do
|
Just NeedPrivData -> do
|
||||||
sendprivdata toh privdata
|
sendprivdata toh privdata
|
||||||
loop
|
loop
|
||||||
Just NeedGitPush -> do
|
Just NeedGitPush -> void $ actionMessage "Git update" $ 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
|
||||||
unlessM ((==) ExitSuccess <$> waitForProcess h) $
|
r <- waitForProcess h
|
||||||
errorMessage "git upload-pack failed"
|
|
||||||
-- no more protocol possible after
|
-- no more protocol possible after
|
||||||
-- git push
|
-- git push
|
||||||
|
hClose fromh
|
||||||
|
hClose toh
|
||||||
|
return (r == ExitSuccess)
|
||||||
Just NeedGitClone -> do
|
Just NeedGitClone -> do
|
||||||
hClose toh
|
hClose toh
|
||||||
hClose fromh
|
hClose fromh
|
||||||
|
|
Loading…
Reference in New Issue