securegit 0.8.5

Zero-trust git replacement with 12 built-in security scanners, LLM redteam bridge, universal undo, durable backups, and a 50-tool MCP server
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use anyhow::{Context, Result};
use std::path::Path;

pub async fn bare_clone(url: &str, dest: &Path) -> Result<()> {
    let url = url.to_string();
    let dest = dest.to_path_buf();
    tokio::task::spawn_blocking(move || {
        git2::build::RepoBuilder::new()
            .bare(true)
            .clone(&url, &dest)
            .context("Failed to perform bare clone")?;
        Ok(())
    })
    .await?
}