Commit Diff


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);