t0033: add tests for safe.directory
commite47363e5a8bdf5144059d664c45c0975243ef05b
authorDerrick Stolee <derrickstolee@github.com>
Wed, 13 Apr 2022 15:32:29 +0000 (13 15:32 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 13 Apr 2022 19:42:49 +0000 (13 12:42 -0700)
tree87f72d7735188d4323446fe3b954389c3db6673a
parentcb95038137e9e66fc6a6b4a0e8db62bcc521b709
t0033: add tests for safe.directory

It is difficult to change the ownership on a directory in our test
suite, so insert a new GIT_TEST_ASSUME_DIFFERENT_OWNER environment
variable to trick Git into thinking we are in a differently-owned
directory. This allows us to test that the config is parsed correctly.

Signed-off-by: Derrick Stolee <derrickstolee@github.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
setup.c
t/t0033-safe-directory.sh [new file with mode: 0755]