[PATCH v2 1/9] for-each-repo tests: test bad --config keys
- From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
- Date
- Nov 1, 2022, 23:05 UTC
- Message-ID
- <patch-v2-1.9-b8fd3bea4d1-20221101T225823Z-avarab@gmail.com>
- In-Reply-To
- <cover-v2-0.9-00000000000-20221101T225822Z-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 4675e852517..6bba0c5f4c2 100755 --- a/t/t0068-for-each-repo.sh +++ b/t/t0068-for-each-repo.sh @@ -33,4 +33,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.38.0.1280.g8136eb6fab2