Commit Diff


commit - 8aa93786da2fe8d0c2714dcda5c6a0d4676b08c1
commit + e15d52415f5691757642691b41e723ddfbd7facb
blob - 9c6dc3c63f0bc8ec9884129798772094865b8aad
blob + 215ac4b28ec9af15c08d48b2d902dee4ca65fc6a
--- got/got.c
+++ got/got.c
@@ -6079,8 +6079,8 @@ cat_tag(struct got_object_id *id, struct got_repositor
 	if (err)
 		goto done;
 
-	fprintf(outfile, "%s%s\n", GOT_TAG_LABEL_TAG,
-	    got_object_tag_get_name(tag));
+	fprintf(outfile, "%s%s\n", GOT_TAG_LABEL_OBJECT, id_str);
+
 	switch (got_object_tag_get_object_type(tag)) {
 	case GOT_OBJ_TYPE_BLOB:
 		fprintf(outfile, "%s%s\n", GOT_TAG_LABEL_TYPE,
@@ -6101,8 +6101,10 @@ cat_tag(struct got_object_id *id, struct got_repositor
 	default:
 		break;
 	}
-	fprintf(outfile, "%s%s\n", GOT_TAG_LABEL_OBJECT, id_str);
 
+	fprintf(outfile, "%s%s\n", GOT_TAG_LABEL_TAG,
+	    got_object_tag_get_name(tag));
+
 	fprintf(outfile, "%s%s %lld +0000\n", GOT_TAG_LABEL_TAGGER,
 	    got_object_tag_get_tagger(tag),
 	    got_object_tag_get_tagger_time(tag));