Skip to content

Commit

Permalink
Merge pull request #1523 from martinvonz/push-xmsuurxprnnw
Browse files Browse the repository at this point in the history
run `git config -l` in temp dir when looking up system config
  • Loading branch information
Byron authored Aug 15, 2024
2 parents 12251eb + 6b1c243 commit 83c9de0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gix-path/src/env/git/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use std::env;
use std::path::{Path, PathBuf};
use std::process::{Command, Stdio};

Expand Down Expand Up @@ -89,6 +90,7 @@ pub(super) static EXE_INFO: Lazy<Option<BString>> = Lazy::new(|| {
cmd.creation_flags(CREATE_NO_WINDOW);
}
cmd.args(["config", "-l", "--show-origin"])
.current_dir(env::temp_dir())
.stdin(Stdio::null())
.stderr(Stdio::null());
cmd
Expand Down

0 comments on commit 83c9de0

Please sign in to comment.