Commit b432fb3b238d777c20317b13604371e07631e014

Stefan Sperling 2018-01-23T17:52:24

treat tag objects as a plain type in got_packfile_extract_object()

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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);