mirror of
https://forge.pointfixe.fr/hubert/gitust.git
synced 2026-02-04 18:47:29 +01:00
save
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user