]> git.ipfire.org Git - thirdparty/git.git/commit
t7450: inspect the correct path a broken code would write to
authorchenjianhu <chenjianh@kylinos.cn>
Thu, 31 Jul 2025 03:49:40 +0000 (03:49 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 31 Jul 2025 18:51:32 +0000 (11:51 -0700)
commitf3ef347bb2e0332872088bb00c8ba9801c578822
tree9d04ec4f18f2ffb3e504b863a29156bc3931f9e3
parent47d3b506d48b7971080f09770f5b06b42569c967
t7450: inspect the correct path a broken code would write to

Prior to 05e9cd64 (config: quote values containing CR character,
2025-05-19), a repository can trick "clone --recurse-submodules"
into running a post-checkout hook shipped with the project.  The
test was written to make sure the trick would no longer run the
hook with the fix in the commit.

However, the test did not check for the path the hook would
create; correct the path to the expected one if the bug were
still with us.

Signed-off-by: chenjianhu <chenjianhu@kylinos.cn>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7450-bad-git-dotfiles.sh