]> git.99rst.org Git - git.git/commit
t: fix grep assertions missing file arguments
authorMichael Montalbo <redacted>
Mon, 6 Jul 2026 05:01:54 +0000 (05:01 +0000)
committerJunio C Hamano <redacted>
Mon, 6 Jul 2026 20:26:01 +0000 (13:26 -0700)
commit04e875a364f5a3792077a3e90c6f546b4cf7ea4c
tree94734976a6372bfd760e55934567a86f7ff22938
parentafd278b35a9aff3ca75fcc393dac53f0a0c1eae6
t: fix grep assertions missing file arguments

Three grep assertions were missing their file arguments, causing
them to read from empty stdin instead of the intended file:

- t2402: '! grep ...' should read from 'out', matching the
  grep on the preceding line.
- t7507: the closing quote is in the wrong place, making the
  entire 'diff --git actual' a single pattern with no file
  argument instead of pattern 'diff --git' and file 'actual'.
- t7700: '! grep ...' should read from 'packlist', matching
  the redirect on the preceding line.

Without file arguments these greps always succeed (empty stdin
matches nothing), so the assertions were not actually checking
anything.  All three tests pass with the corrected file arguments,
confirming the intended behavior is sound.

Signed-off-by: Michael Montalbo <redacted>
Signed-off-by: Junio C Hamano <redacted>
t/t2402-worktree-list.sh
t/t7507-commit-verbose.sh
t/t7700-repack.sh
git clone https://git.99rst.org/PROJECT