mirror of
https://forge.pointfixe.fr/hubert/gitust.git
synced 2026-02-04 18:27:29 +01:00
push OK, clone KO
This commit is contained in:
@@ -148,9 +148,10 @@ async fn git_proto(payload : web::Payload, web::Path((owner, reponame)): web::Pa
|
|||||||
.stdin(Stdio::piped());
|
.stdin(Stdio::piped());
|
||||||
let mut p: Child = cmd.spawn()?;
|
let mut p: Child = cmd.spawn()?;
|
||||||
//p.stdin.take().unwrap().write()
|
//p.stdin.take().unwrap().write()
|
||||||
|
let mut input = p.stdin.take().unwrap();
|
||||||
payload.try_for_each(|bytes| {
|
payload.try_for_each(|bytes| {
|
||||||
// println!("{:?}", bytes);
|
// println!("{:?}", bytes);
|
||||||
p.stdin.take().unwrap().write(bytes.bytes());
|
input.write(bytes.bytes());
|
||||||
future::ready(Ok(()))
|
future::ready(Ok(()))
|
||||||
}).await;
|
}).await;
|
||||||
//io::copy(&mut req.take_payload(), &mut p.stdin.take().unwrap())?;
|
//io::copy(&mut req.take_payload(), &mut p.stdin.take().unwrap())?;
|
||||||
|
|||||||
Reference in New Issue
Block a user