]> git.ipfire.org Git - thirdparty/git.git/commit
builtin/maintenance: fix loose objects task emitting pack hash
authorPatrick Steinhardt <ps@pks.im>
Mon, 19 Aug 2024 07:48:05 +0000 (09:48 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 21 Aug 2024 18:33:22 +0000 (11:33 -0700)
commit8311e3b5515ea161c74cfd9b032270c0f459f2b8
treeaeedba65744a87d56a9a0ae53c7e2603f8015e57
parent51a0b8a2a70f78f157761b3629010399463ed982
builtin/maintenance: fix loose objects task emitting pack hash

The "loose-objects" maintenance tasks executes git-pack-objects(1) to
pack all loose objects into a new packfile. This command ends up
printing the hash of the packfile to stdout though, which clutters the
output of `git maintenance run`.

Fix this issue by disabling stdout of the child process.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/gc.c
t/t7900-maintenance.sh