]> git.ipfire.org Git - thirdparty/git.git/commit - t/t9300-fast-import.sh
fast-import: do not truncate exported marks file
authorFelipe Contreras <felipe.contreras@gmail.com>
Tue, 17 May 2016 21:40:23 +0000 (16:40 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 17 May 2016 22:02:25 +0000 (15:02 -0700)
commitf4beed60d5ef3fdbd31ac5bd3162182fdf2bf0d3
tree4a7539abe7a7b8c0524f39b17ac1e8cf3e868300
parentd92347f59fefb95a2d9240c007a44f408c216fa7
fast-import: do not truncate exported marks file

Certain lines of the marks file might be corrupted (or the objects
missing due to a garbage collection), but that's no reason to truncate
the file and essentially destroy the rest of it.

Ideally missing objects should not cause a crash, we could just skip
them, but that's another patch.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
fast-import.c
t/t9300-fast-import.sh