clarify some error messages wrt unknown object types
If ever new object types are added for future extensions then better have current git version report them as "unknown" instead of "corrupted". Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:

committed by
Junio C Hamano

parent
85023577a8
commit
08a19d873c
@ -266,7 +266,7 @@ static void *unpack_raw_entry(struct object_entry *obj, union delta_base *delta_
|
||||
case OBJ_TAG:
|
||||
break;
|
||||
default:
|
||||
bad_object(obj->offset, "bad object type %d", obj->type);
|
||||
bad_object(obj->offset, "unknown object type %d", obj->type);
|
||||
}
|
||||
obj->hdr_size = consumed_bytes - obj->offset;
|
||||
|
||||
|
Reference in New Issue
Block a user