This commit is contained in:
Hubert
2021-07-21 06:53:03 +02:00
parent 381347e66a
commit 90bc6d6d4f
5 changed files with 18 additions and 11 deletions

View File

@@ -14,6 +14,7 @@ use tokio::process::{Child, Command};
use crate::gitust::Gitust;
use crate::reader::ToStream;
use crate::error;
//#[get("/git/{owner}/{repo}.git/{path:.*}")]
pub async fn git_proto(
@@ -22,7 +23,7 @@ pub async fn git_proto(
mut req: HttpRequest,
gitust : web::Data<Gitust>,
auth : BasicAuth,
) -> io::Result<HttpResponse>{
) -> Result<HttpResponse, error::Error>{
//println!("enter git_proto");
let mut cmd = Command::new("git");
cmd.arg("http-backend");