t7450: test verify_path() handling of gitmodules
authorJeff King <peff@peff.net>
Mon, 3 May 2021 20:43:15 +0000 (16:43 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 4 May 2021 02:52:02 +0000 (11:52 +0900)
commita1ca398ba7da82622a9485400f88e62f3b756d1b
treef4556c2376c451c8c3fed4fabd4840f64d151238
parent43a2220f19eca9667dfac59a5e8a4deda2c3eb3d
t7450: test verify_path() handling of gitmodules

Commit 10ecfa7649 (verify_path: disallow symlinks in .gitmodules,
2018-05-04) made it impossible to load a symlink .gitmodules file into
the index. However, there are no tests of this behavior. Let's make sure
this case is covered. We can easily reuse the test setup created by
the matching b7b1fca175 (fsck: complain when .gitmodules is a symlink,
2018-05-04).

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7450-bad-git-dotfiles.sh