]> git.ipfire.org Git - thirdparty/git.git/commit
t/t7704-repack-cruft.sh: consolidate `write_blob()`
authorTaylor Blau <me@ttaylorr.com>
Wed, 19 Mar 2025 22:52:51 +0000 (18:52 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 21 Mar 2025 10:42:06 +0000 (03:42 -0700)
commit7fb12bb27eacbd8f5588e4dfba283b62d7faff90
tree64d677e26a904a156fb0246d07c3f3c8499febb2
parent1b01b03e52dcb1768c569b6dbaf84402c3b166bd
t/t7704-repack-cruft.sh: consolidate `write_blob()`

A previous commit moved a handful of tests from a different script into
t7704, including one that relies on generating random blobs.

Incidentally, the original home of this test defined its own helper
"write_blob" for doing so, which is identical in function to our
"generate_random_blob" (and is slightly inferior to the latter, which
cleans up after itself).

Rewrite the test that uses "write_blob" to no longer do so and then
remove the function.

Signed-off-by: Taylor Blau <me@ttaylorr.com>
Acked-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7704-repack-cruft.sh