Message ID | patch-v3-1.9-5c8819ff388-20221125T093159Z-avarab@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | config API: make "multi" safe, fix numerous segfaults | expand |
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
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(+)