Commit a879d22
committed
fix: Omit other high-scoped config in fixtures
In addition to keeping fixture scripts from receiving global and
system scope Git configuration variables, as was already done, this
also omits configuration variables from high scopes similar to or
above the system scope, associated with the Git installation but
separate from the system scope.
The main and possibly only case where this happens is the "unknown"
scope associated with an Apple Git installation on macOS. This is a
file usually located under `/Library` or `/Applications`.
This is done by using `GIT_CONFIG_NOSYSTEM`, which suppresses both
the system scope and this separate "unknown" scope, instead of by
settng `GIT_CONFIG_SYSTEM` to a path like `/dev/null`. The latter
approach continues to be used to omit global scope config via
`GIT_CONFIG_GLOBAL` (as `git` recognized no `GIT_CONFIG_NOGLOBAL`).1 parent d576b32 commit a879d22
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
603 | 603 | | |
604 | 604 | | |
605 | 605 | | |
606 | | - | |
| 606 | + | |
607 | 607 | | |
608 | 608 | | |
609 | 609 | | |
| |||
0 commit comments