Commit Diff


commit - d4f6ce15740c83cf98f1c4b9ef7d055da35a7562
commit + 0205a93b47b8df2d6b68da6cd32b3c538eb3a4de
blob - 1a2c4fdd7b26a9c941627e4eecd38bbd768ce35a
blob + 66b8f303ade62df4e389bc7f6772052213f1914e
--- lib/pack_index.c
+++ lib/pack_index.c
@@ -595,7 +595,7 @@ update_packidx(struct got_packidx *packidx, uint32_t n
 	int idx;
 	uint32_t nindexed = be32toh(packidx->hdr.fanout_table[0xff]);
 
-	idx = find_object_idx(packidx, obj->id.sha1);
+	idx = find_object_idx(packidx, obj->id.hash);
 	if (idx == -1)
 		return; /* object already indexed */