Skip to content

Commit a73070f

Browse files
five-shttaylorr
authored andcommitted
t4205: fix typo in 'NUL termination with --stat'
Correct "expected" to rightly terminate with NUL ie '\0' instead of '0' which may have been typoed. We didn't notice this before because the test is run with "test_expect_failure", meaning the test would have been marked broken anyways. Signed-off-by: Kousik Sanagavarapu <[email protected]> Signed-off-by: Taylor Blau <[email protected]>
1 parent 34b6ce9 commit a73070f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t4205-log-pretty-formats.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ test_expect_success 'NUL separation with --stat' '
137137
test_expect_failure 'NUL termination with --stat' '
138138
stat0_part=$(git diff --stat HEAD^ HEAD) &&
139139
stat1_part=$(git diff-tree --no-commit-id --stat --root HEAD^) &&
140-
printf "add bar\n$stat0_part\n\0$(commit_msg)\n$stat1_part\n0" >expected &&
140+
printf "add bar\n$stat0_part\n\0$(commit_msg)\n$stat1_part\n\0" >expected &&
141141
git log -z --stat --pretty="tformat:%s" >actual &&
142142
test_cmp expected actual
143143
'

0 commit comments

Comments
 (0)