aboutsummaryrefslogtreecommitdiff
path: root/tools/coverage-diff.sh
diff options
context:
space:
mode:
authorSiddharth Shrimali <r.siddharth.shrimali@gmail.com>2026-03-11 23:11:20 +0530
committerJunio C Hamano <gitster@pobox.com>2026-03-11 11:13:06 -0700
commit30310f3cc474ff26b8306da48566667f67206808 (patch)
tree14db353d170c646c8f08a769fddf2116a4262c7c /tools/coverage-diff.sh
parent67ad42147a7acc2af6074753ebd03d904476118f (diff)
downloadgit-30310f3cc474ff26b8306da48566667f67206808.tar.xz
t3200: replace hardcoded null OID with $ZERO_OID
To support the SHA-256 transition, replace the hardcoded 40-zero string in 'git branch --merged' with '$ZERO_OID'. The current 40-character string causes the test to fail prematurely in SHA-256 environments because Git identifies a "malformed object name" (due to the 40 vs 64 character mismatch) before it even validates the object type. By using '$ZERO_OID', we ensure the hash length is always correct for the active algorithm. Additionally, use 'test_grep' to verify the "must point to a commit" error message, ensuring the test validates the object type logic rather than just string syntax. Suggested-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Siddharth Shrimali <r.siddharth.shrimali@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'tools/coverage-diff.sh')
0 files changed, 0 insertions, 0 deletions