fuck up your gitconfig for no reason
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
d04a2788bd
commit
5d3160831b
1 changed files with 6 additions and 0 deletions
|
@ -4,6 +4,7 @@ use anyhow::{anyhow, Result};
|
|||
use axum::middleware::from_fn;
|
||||
use bollard::Docker;
|
||||
use clap::Parser;
|
||||
use git2::Config;
|
||||
use std::{net::SocketAddr, path::PathBuf};
|
||||
use tokio::fs;
|
||||
|
||||
|
@ -73,6 +74,11 @@ async fn main() -> Result<()> {
|
|||
author_email,
|
||||
};
|
||||
|
||||
// Fix up local git config for docker scenarios
|
||||
let mut config = Config::open_default()?;
|
||||
// Add "*" to safe.directory
|
||||
config.set_str("safe.directory", "*")?;
|
||||
|
||||
// Make sure stack arg exists and is properly initialized
|
||||
fs::create_dir_all(&args.stack_dir).await?;
|
||||
let repository = ThreadSafeRepository::ensure_repository(gitconfig, &args.stack_dir)?;
|
||||
|
|
Reference in a new issue