treat tag objects as a plain type in got_packfile_extract_object()
diff --git a/lib/pack.c b/lib/pack.c
index 09db6b0..5f0f002 100644
--- a/lib/pack.c
+++ b/lib/pack.c
@@ -870,13 +870,13 @@ got_packfile_extract_object(FILE **f, struct got_object *obj,
case GOT_OBJ_TYPE_COMMIT:
case GOT_OBJ_TYPE_TREE:
case GOT_OBJ_TYPE_BLOB:
+ case GOT_OBJ_TYPE_TAG:
err = dump_plain_object(packfile, obj->type, obj->size, *f);
break;
case GOT_OBJ_TYPE_REF_DELTA:
err = dump_ref_delta_object(repo, packfile, obj->type,
obj->size, *f);
break;
- case GOT_OBJ_TYPE_TAG:
case GOT_OBJ_TYPE_OFFSET_DELTA:
default:
err = got_error(GOT_ERR_NOT_IMPL);