1
0
mirror of https://github.com/j178/prek.git synced 2026-04-25 02:11:36 +02:00

Remove one clone on GIT command (#93)

This commit is contained in:
Jo
2024-11-21 17:14:01 +08:00
committed by GitHub
parent 2677612af7
commit 191bf41265
+1 -1
View File
@@ -41,7 +41,7 @@ static GIT_ENV: LazyLock<Vec<(String, String)>> = LazyLock::new(|| {
});
fn git_cmd(summary: &str) -> Result<Cmd, Error> {
let mut cmd = Cmd::new(GIT.clone()?, summary);
let mut cmd = Cmd::new(GIT.as_ref().map_err(|&e| Error::GitNotFound(e))?, summary);
cmd.arg("-c").arg("core.useBuiltinFSMonitor=false");
cmd.envs(GIT_ENV.iter().cloned());