Re: [PATCH] t3706: Add test for wildcard vs literal pathspec
- From
JAYATHEERTH K <jayatheerthkulkarni2005@gmail.com>
- Date
- Apr 19, 2025, 04:59 UTC
- Message-ID
- <CA+rGoLes1u3LZiStmDPmh4iiUNzNY43KyYNdLadQU+cy1TCc4A@mail.gmail.com>
- In-Reply-To
- <xmqqcydchz9o.fsf@gitster.g>
test_expect_success 'commit wildcard pathspec limits commit' ' reset_git_repo && git add . && git commit --allow-empty -m "Test commit with * wildcard" -- "*" && cat >expected_files <<-\EOF && * ** ? [abc] a f* f** f?z foo*bar hello?world hello_world EOF git ls-tree -r --name-only HEAD > actual_files && test_cmp expected_files actual_files '
I get issues with these test cases, Specially at git ls-tree -r --name-only HEAD > actual_files
For some reason the test_cmp doesn't get resolved Is it a bad way to do? or is there a better way?