[PATCH v3 1/9] for-each-repo tests: test bad --config keys
- From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
- Date
- Nov 25, 2022, 09:50 UTC
- Message-ID
- <patch-v3-1.9-5c8819ff388-20221125T093159Z-avarab@gmail.com>
- In-Reply-To
- <cover-v3-0.9-00000000000-20221125T093158Z-avarab@gmail.com>
As noted in 6c62f015520 (for-each-repo: do nothing on empty config, 2021-01-08) this command wants to ignore a non-existing config key, but it's been conflating that with bad config keys.
A subsequent commit will address that, but for now let's fix the gaps in test coverage, and show what we're currently doing in these cases.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> --- t/t0068-for-each-repo.sh | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/t/t0068-for-each-repo.sh b/t/t0068-for-each-repo.sh index c6e0d655630..a099abc652e 100755 --- a/t/t0068-for-each-repo.sh +++ b/t/t0068-for-each-repo.sh @@ -39,4 +39,10 @@ test_expect_success 'do nothing on empty config' ' git for-each-repo --config=bogus.config -- help --no-such-option ' +test_expect_success 'bad config keys' ' + git for-each-repo --config=a && + git for-each-repo --config=a.b. && + git for-each-repo --config="'\''.b" +' + test_done
-- 2.39.0.rc0.955.ge9b241be664