maintenance: use 'git config --fixed-value'
authorDerrick Stolee <redacted>
Wed, 25 Nov 2020 22:12:56 +0000 (22:12 +0000)
committerJunio C Hamano <redacted>
Wed, 25 Nov 2020 23:04:55 +0000 (15:04 -0800)
commit483a6d9b5da6a03d34aceb7bff86b12c7241e17b
treeb939afafb482e824e83b0bc383a9b6abd0bce337
parent8717937a75dd3a38c5298cc6047c8653d30c2e45
maintenance: use 'git config --fixed-value'

When a repository's leading directories contain regex metacharacters,
the config calls for 'git maintenance register' and 'git maintenance
unregister' are not careful enough. Use the new --fixed-value option
to direct the config machinery to use exact string matches. This is a
more robust option than escaping these arguments in a piecemeal fashion.

For the test, require that we are not running on Windows since the '+'
and '*' characters are not allowed on that filesystem.

Reported-by: Emily Shaffer <redacted>
Reported-by: Jonathan Nieder <redacted>
Signed-off-by: Derrick Stolee <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/gc.c
t/t7900-maintenance.sh
git clone https://git.99rst.org/PROJECT