From: Nguyễn Thái Ngọc Duy Date: Sat, 5 Feb 2011 10:52:21 +0000 (+0700) Subject: Make hash-object more robust against malformed objects X-Git-Tag: v1.7.5-rc0~113^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/c879daa23729547fb28aa7e8783c5e4e619a9e7c?hp=c879daa23729547fb28aa7e8783c5e4e619a9e7c Make hash-object more robust against malformed objects Commits, trees and tags have structure. Don't let users feed git with malformed ones. Sooner or later git will die() when encountering them. Note that this patch does not check semantics. A tree that points to non-existent objects is perfectly OK (and should be so, users may choose to add commit first, then its associated tree for example). Signed-off-by: Nguyễn Thái Ngọc Duy Signed-off-by: Junio C Hamano ---