Commit c5621f1ccb44ea1d23cb07ba3c4429145e969570

Stefan Sperling 2020-03-18T16:13:42

enable object CRC calculation in got-index-pack

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/libexec/got-index-pack/got-index-pack.c b/libexec/got-index-pack/got-index-pack.c
index a520e6a..0418b2d 100644
--- a/libexec/got-index-pack/got-index-pack.c
+++ b/libexec/got-index-pack/got-index-pack.c
@@ -533,11 +533,9 @@ index_pack(struct got_pack *pack, int idxfd, uint8_t *pack_hash,
 
 		objects[i] = obj;
 
-		if (0) {
 		err = object_crc(pack->fd, obj);
 		if (err)
 			goto done;
-		}
 
 		if (obj->type == GOT_OBJ_TYPE_BLOB ||
 		    obj->type == GOT_OBJ_TYPE_TREE ||