Code

mktree: validate entry type in input
authorJosh Micich <josh.micich@gmail.com>
Thu, 14 May 2009 22:49:10 +0000 (15:49 -0700)
committerJunio C Hamano <gitster@pobox.com>
Sat, 16 May 2009 17:35:45 +0000 (10:35 -0700)
commit31c8221acb7c7acaea6ce2c680c2985581ce0066
treed740a5fa449493259c531b7827a896d7857b1ae0
parentf1cf2d8b1467b5973f249703b31e709eaede97ad
mktree: validate entry type in input

Previously mktree would accept tree entries which had a mismatch between
the declared type and the actual type of object.  Check the actual type of
the object when it is available locally.

Signed-off-by: Josh Micich <josh.micich@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-mktree.c