setup: fix safe.directory key not being checked
commitbb50ec3cc300eeff3aba7a2bea145aabdb477d31
authorMatheus Valadares <me@m28.io>
Wed, 13 Apr 2022 15:32:30 +0000 (13 15:32 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 13 Apr 2022 19:42:51 +0000 (13 12:42 -0700)
tree413c5d0a2a2241e945ce6f60902586772b507dfb
parente47363e5a8bdf5144059d664c45c0975243ef05b
setup: fix safe.directory key not being checked

It seems that nothing is ever checking to make sure the safe directories
in the configs actually have the key safe.directory, so some unrelated
config that has a value with a certain directory would also make it a
safe directory.

Signed-off-by: Matheus Valadares <me@m28.io>
Signed-off-by: Derrick Stolee <derrickstolee@github.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
setup.c
t/t0033-safe-directory.sh