Commit 482d549
t1300: fix unset of GIT_CONFIG_NOSYSTEM leaking into subsequent tests
In order to test whether the new GIT_CONFIG_SYSTEM environment variable
behaves as expected, we unset GIT_CONFIG_NOSYSTEM in one of our tests in
t1300. But because tests are not executed in a subshell, this unset
leaks into all subsequent tests and may thus cause them to fail in some
environments. These failures are easily reproducable with `make
prefix=/root test`.
Fix the issue by not using `sane_unset GIT_CONFIG_NOSYSTEM`, but instead
just manually add it to the environment of the two command invocations
which need it.
Reported-by: SZEDER Gábor <szeder.dev@gmail.com>
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent 4179b48 commit 482d549
1 file changed
+3
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2092 | 2092 | | |
2093 | 2093 | | |
2094 | 2094 | | |
2095 | | - | |
2096 | | - | |
2097 | 2095 | | |
2098 | 2096 | | |
2099 | 2097 | | |
2100 | 2098 | | |
2101 | 2099 | | |
2102 | | - | |
| 2100 | + | |
2103 | 2101 | | |
2104 | 2102 | | |
2105 | 2103 | | |
2106 | 2104 | | |
2107 | 2105 | | |
2108 | 2106 | | |
2109 | | - | |
| 2107 | + | |
| 2108 | + | |
2110 | 2109 | | |
2111 | 2110 | | |
2112 | 2111 | | |
| |||
0 commit comments