]> git.ipfire.org Git - thirdparty/git.git/commit
t9300: test verification of renamed paths
authorJeff King <peff@peff.net>
Tue, 3 Dec 2024 21:06:52 +0000 (16:06 -0500)
committerJunio C Hamano <gitster@pobox.com>
Wed, 4 Dec 2024 00:12:07 +0000 (09:12 +0900)
commit8cb4c6e62f28ac9d9a04daf794ff6dbddf55e416
tree23594230627ae3f7b5ea7c80f7ef302f0010a072
parentda91a90c2f42f4b4e1fffa916a51e0e7ecb86ed9
t9300: test verification of renamed paths

Commit da91a90c2f (fast-import: disallow more path components,
2024-11-30) added two separate verify_path() calls (one for
added/modified files, and one for renames/copies). But our tests only
exercise the first one. Let's protect ourselves against regressions by
tweaking one of the tests to rename into the bad path. There are
adjacent tests that will stay as additions, so now both calls are
covered.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t9300-fast-import.sh