File tree 1 file changed +5
-0
lines changed 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -120,6 +120,11 @@ fn git_cmd(executable: PathBuf) -> Command {
120
120
// Low versions of git are still sometimes used, and this is sometimes reasonable because
121
121
// downstream distributions often backport security patches without adding most new features.
122
122
// So for now, we forgo the convenience of --show-scope for greater backward compatibility.
123
+ //
124
+ // Separately from that, we can't use --system here, because scopes treated higher than the
125
+ // system scope are possible. This commonly happens on macOS with Apple Git, where the config
126
+ // file under /Library is shown as an "unknown" scope but takes precedence over the system
127
+ // scope. Although GIT_CONFIG_NOSYSTEM will suppress this as well, passing --system omits it.
123
128
cmd. args ( [ "config" , "-lz" , "--show-origin" , "--name-only" ] )
124
129
. current_dir ( env:: temp_dir ( ) )
125
130
. env ( "GIT_DIR" , NULL_DEVICE ) // Avoid getting local-scope config.
You can’t perform that action at this time.
0 commit comments