t0033-safe-directory: check when 'safe.directory' is ignored
commit424f315d9f15338ee950f343e01becd6f087121b
authorSZEDER Gábor <szeder.dev@gmail.com>
Wed, 27 Apr 2022 17:06:48 +0000 (27 19:06 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 27 Apr 2022 20:30:55 +0000 (27 13:30 -0700)
tree9ea0a5eda3dfb2de376e61e7a457eb6745c0823e
parentf62563988fefed73d795cfaeae203421b784c334
t0033-safe-directory: check when 'safe.directory' is ignored

According to the documentation 'safe.directory' "is only respected
when specified in a system or global config, not when it is specified
in a repository config or via the command line option -c
safe.directory=<path>".

Add tests to check that 'safe.directory' in the repository config or
on the command line is indeed ignored.

Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t0033-safe-directory.sh