Files
git/builtin
Junio C Hamano 4c9355ff48 repack: check error writing to pack-objects subprocess
When "git repack" repacks promisor objects, it starts a pack-objects
subprocess and uses xwrite() to send object names over the pipe to
it, but without any error checking.  An I/O error or short write
(even though a short write is unlikely for such a small amount of
data) can result in a packfile that lacks certain objects we wanted
to put in there, leading to a silent repository corruption.

Use write_in_full(), instead of xwrite(), to mitigate short write
risks, check errors from it, and abort if we see a failure.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
2024-03-02 11:12:16 -08:00
..
2024-01-08 14:05:15 -08:00
2024-02-13 10:18:50 -08:00
2024-01-29 10:27:53 -08:00
2024-02-12 09:32:41 -08:00
2024-01-18 12:17:42 -08:00
2023-07-06 11:54:48 -07:00
2024-01-08 14:05:15 -08:00
2024-02-26 18:10:24 -08:00
2023-07-06 11:54:48 -07:00
2023-07-06 11:54:46 -07:00
2024-02-27 16:04:32 -08:00
2024-01-18 12:17:41 -08:00