aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKousik Sanagavarapu <five231003@gmail.com>2024-10-21 00:48:47 +0530
committerTaylor Blau <me@ttaylorr.com>2024-10-21 17:37:11 -0400
commita73070fbd45e7628da2d3287b17349d928b593cf (patch)
tree55bbeaa2fd5308534d76313a80c76d8bac928cd2
parent34b6ce9b30747131b6e781ff718a45328aa887d0 (diff)
downloadgit-a73070fbd45e7628da2d3287b17349d928b593cf.tar.xz
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 <five231003@gmail.com> Signed-off-by: Taylor Blau <me@ttaylorr.com>
-rwxr-xr-xt/t4205-log-pretty-formats.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t4205-log-pretty-formats.sh b/t/t4205-log-pretty-formats.sh
index eb63ce011f..57b8b79738 100755
--- a/t/t4205-log-pretty-formats.sh
+++ b/t/t4205-log-pretty-formats.sh
@@ -137,7 +137,7 @@ test_expect_success 'NUL separation with --stat' '
test_expect_failure 'NUL termination with --stat' '
stat0_part=$(git diff --stat HEAD^ HEAD) &&
stat1_part=$(git diff-tree --no-commit-id --stat --root HEAD^) &&
- printf "add bar\n$stat0_part\n\0$(commit_msg)\n$stat1_part\n0" >expected &&
+ printf "add bar\n$stat0_part\n\0$(commit_msg)\n$stat1_part\n\0" >expected &&
git log -z --stat --pretty="tformat:%s" >actual &&
test_cmp expected actual
'