From: Felipe Contreras Date: Sat, 15 May 2021 20:21:54 GMT Subject: RE: [PATCH 2/2] t: use test_config whenever possible Message-ID: <60a02d62838cf_eacf5208d2@natae.notmuch> In-Reply-To: <60a02bf2f16a2_eacf52085@natae.notmuch> Felipe Contreras wrote: > Firmin Martin wrote: > > diff --git a/t/t5526-fetch-submodules.sh b/t/t5526-fetch-submodules.sh > > index ed11569d8d..ff18263171 100755 > > --- a/t/t5526-fetch-submodules.sh > > +++ b/t/t5526-fetch-submodules.sh > > @@ -418,7 +418,7 @@ test_expect_success "'fetch.recurseSubmodules=on-demand' overrides global config > > git fetch --recurse-submodules > > ) && > > add_upstream_commit && > > - git config --global fetch.recurseSubmodules false && > > + test_config_global fetch.recurseSubmodules false && > > head1=$(git rev-parse --short HEAD) && > > git add submodule && > > git commit -m "new submodule" && > > @@ -429,11 +429,7 @@ test_expect_success "'fetch.recurseSubmodules=on-demand' overrides global config > > ( > > cd downstream && > > git config fetch.recurseSubmodules on-demand && > > Uhm: > > test_config fetch.recurseSubmodules on-demand && Ahh, I just read the comment about not using it in a subshell. Then outside: test_config -C downstream fetch.recurseSubmodules on-demand && -- Felipe Contreras