commit e0e55b50ec1b9458bbd145dc18635a8a8265d4db from: Stefan Sperling date: Fri Feb 01 21:46:32 2019 UTC Support tags in Linux git repo which do not carry name of tagger. commit - 1caad61b798a830cb7a2898dfda93c11abe17b52 commit + e0e55b50ec1b9458bbd145dc18635a8a8265d4db blob - c7a5cc25162b214d75610abdd2ded8141e27cf43 blob + 330cbe4a0d85697ea7cce322aff8dab3bf12b118 --- lib/object_parse.c +++ lib/object_parse.c @@ -857,8 +857,12 @@ got_object_parse_tag(struct got_tag_object **tag, uint goto done; } } else { - err = got_error(GOT_ERR_BAD_OBJ_DATA); - goto done; + /* Some old tags in the Linux git repo have no tagger. */ + (*tag)->tagger = strdup(""); + if ((*tag)->tagger == NULL) { + err = got_error_from_errno(); + goto done; + } } (*tag)->tagmsg = strndup(s, remain);