#1033233 spurious colour output from git init

Package:
git
Source:
git
Description:
fast, scalable, distributed revision control system
Submitter:
Zefram
Date:
2023-03-20 13:15:05 UTC
Severity:
normal
#1033233#5
Date:
2023-03-20 13:14:06 UTC
From:
To:
"git init" outputs a bunch of lines marked "hint:".  For me it's emitting
those lines with a bunch of ANSI colour escape sequences, despite me
having configured color.ui=never in my ~/.gitconfig.  Some strace output:

write(2, "\33[33mhint: Using 'master' as the"..., 90) = 90
write(2, "\33[33mhint: is subject to change."..., 87) = 87
write(2, "\33[33mhint: of your new repositor"..., 80) = 80
write(2, "\33[33mhint: \33[m\n", 15)    = 15
write(2, "\33[33mhint: \tgit config --global "..., 61) = 61
write(2, "\33[33mhint: \33[m\n", 15)    = 15
write(2, "\33[33mhint: Names commonly chosen"..., 80) = 80
write(2, "\33[33mhint: 'development'. The ju"..., 86) = 86
write(2, "\33[33mhint: \33[m\n", 15)    = 15
write(2, "\33[33mhint: \tgit branch -m <name>"..., 36) = 36

And a configuration extract:

$ sed -n 6,7p ~/.gitconfig
[color]
	ui = never