diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2013-09-11 13:06:12 +0700 |
---|---|---|
committer | Nicolas Pitre <nico@fluxnic.net> | 2013-09-13 21:00:30 -0400 |
commit | 8ae1090121480dc89a601d9cf672926ec70ca265 (patch) | |
tree | 5fd8623848d72830e9ef51730bd7d3248f6c54dc | |
parent | 22af1289d5bf73e0ab9af70dc6de838e23d37866 (diff) | |
download | git-8ae1090121480dc89a601d9cf672926ec70ca265.tar.gz |
unpack-objects: report missing object name
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Nicolas Pitre <nico@fluxnic.net>
-rw-r--r-- | builtin/unpack-objects.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/unpack-objects.c b/builtin/unpack-objects.c index 2217d7b3ae..6d0a65c898 100644 --- a/builtin/unpack-objects.c +++ b/builtin/unpack-objects.c @@ -193,7 +193,7 @@ static int check_object(struct object *obj, int type, void *data) unsigned long size; int type = sha1_object_info(obj->sha1, &size); if (type != obj->type || type <= 0) - die("object of unexpected type"); + die("object %s of unexpected type", sha1_to_hex(obj->sha1)); obj->flags |= FLAG_WRITTEN; return 0; } |