summaryrefslogtreecommitdiff
path: root/t/t5411/test-0011-no-hook-error.sh
diff options
context:
space:
mode:
authorLibravatar Ævar Arnfjörð Bjarmason <avarab@gmail.com>2021-02-25 02:21:16 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-02-24 19:02:58 -0800
commitbfa9148ff7df2ee5213c6467e3410ba134591178 (patch)
tree221bf7fe60af92834f332a9edef94ad8120931c8 /t/t5411/test-0011-no-hook-error.sh
parentMerge branch 'tb/ci-run-cocci-with-18.04' into maint (diff)
downloadtgif-bfa9148ff7df2ee5213c6467e3410ba134591178.tar.xz
remote: add camel-cased *.tagOpt key, like clone
Change "git remote add" so that it adds a *.tagOpt key, and not the lower-cased *.tagopt on "git remote add --no-tags", just as "git clone --no-tags" would do. This doesn't matter for anything that reads the config. It's just prettier if we write config keys in their documented camelCase form to user-readable config files. When I added support for "clone -no-tags" in 0dab2468ee5 (clone: add a --no-tags option to clone without tags, 2017-04-26) I made it use the *.tagOpt form, but the older "git remote add" added in 111fb858654 (remote add: add a --[no-]tags option, 2010-04-20) has been using *.tagopt all this time. It's easy enough to add a test for this, so let's do that. We can't use "git config -l" there, because it'll normalize the keys to their lower-cased form. Let's add the test for "git clone" too for good measure, not just to the "git remote" codepath we're fixing. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5411/test-0011-no-hook-error.sh')
0 files changed, 0 insertions, 0 deletions