Skip to content

Commit 83c9de0

Browse files
authored
Merge pull request #1523 from martinvonz/push-xmsuurxprnnw
run `git config -l` in temp dir when looking up system config
2 parents 12251eb + 6b1c243 commit 83c9de0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

gix-path/src/env/git/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
use std::env;
12
use std::path::{Path, PathBuf};
23
use std::process::{Command, Stdio};
34

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

0 commit comments

Comments
 (0)