Repository navigation
Commit 98d6ff3
t0410: keep git's exit code in test_grep calls
The 'rev-list stops traversal at missing and promised tree' test passes
"$(git -C repo rev-parse ...)" directly to test_grep. t/README says
not to use command substitution in a way that discards git's exit
code: the && chain only sees test_grep's exit code, so a failure in
git is not caught there.
Assign the rev-parse output to variables first and pass those to
test_grep instead.
Signed-off-by: Dorine Tipo <dorine.a.tipo@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent 38821a2 commit 98d6ff3
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
413 | 413 | | |
414 | 414 | | |
415 | 415 | | |
416 | | - | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
417 | 421 | | |
418 | | - | |
| 422 | + | |
419 | 423 | | |
420 | 424 | | |
421 | 425 | | |
| |||
0 commit comments