From: Jeff King Date: Tue, 3 Dec 2024 21:06:52 +0000 (-0500) Subject: t9300: test verification of renamed paths X-Git-Tag: v2.48.0-rc0~13^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8cb4c6e62f28ac9d9a04daf794ff6dbddf55e416;p=thirdparty%2Fgit.git 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 Signed-off-by: Junio C Hamano --- diff --git a/t/t9300-fast-import.sh b/t/t9300-fast-import.sh index e2b1db6bc2..fd01a2353c 100755 --- a/t/t9300-fast-import.sh +++ b/t/t9300-fast-import.sh @@ -553,9 +553,16 @@ test_expect_success 'B: fail on invalid file path of .' ' commit refs/heads/badpath committer Name $GIT_COMMITTER_DATE data < $GIT_COMMITTER_DATE + data <