diff options
author | Kyle Lippincott <spectral@google.com> | 2024-08-05 17:10:08 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-08-05 10:59:21 -0700 |
commit | ec60bb9fc416e0ded2336e8923c8249c661bfc80 (patch) | |
tree | 1d3059b507859a6e1a8a694592eaf8f64a8fab4f /builtin/commit.c | |
parent | b928d57ca9aa7457ec0dee022c1664e8cd606b22 (diff) |
t6421: fix test to work when repo dir contains d0
The `grep` statement in this test looks for `d0.*<string>`, attempting
to filter to only show lines that had tabular output where the 2nd
column had `d0` and the final column had a substring of
[`git -c `]`fetch.negotiationAlgorithm`. These lines also have
`child_start` in the 4th column, but this isn't part of the condition.
A subsequent line will have `d1` in the 2nd column, `start` in the 4th
column, and `/path/to/git/git -c fetch.negotiationAlgorihm` in the final
column. If `/path/to/git/git` contains the substring `d0`, then this
line is included by `grep` as well as the desired line, leading to an
effective doubling of the number of lines, and test failures.
Tighten the grep expression to require `d0` to be surrounded by spaces,
and to have the `child_start` label.
Signed-off-by: Kyle Lippincott <spectral@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit.c')
0 files changed, 0 insertions, 0 deletions