t1300: don't needlessly work with `core.foo` configs
commit04f6b0a192afad0b2f562deda8913417a875378e
authorMartin Ågren <martin.agren@gmail.com>
Sun, 3 Jan 2021 09:36:48 +0000 (3 10:36 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 4 Jan 2021 19:31:25 +0000 (4 11:31 -0800)
treecf8ed35170ad85e71a3aa7cbe8447d2f1d23d739
parent34479d717756bd363280ac65bfd71569d954f74b
t1300: don't needlessly work with `core.foo` configs

We use various made-up config keys in the "core" section for no real
reason. Change them to work in the "section" section instead and be
careful to also change "cores" to "sections". Make sure to also catch
"Core", "CoReS" and similar.

There are a few instances that actually want to work with a real "core"
config such as `core.bare` or `core.editor`. After this, it's clearer
that they work with "core" for a reason.

Reported-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Martin Ågren <martin.agren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1300-config.sh