Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
cvsimport: add <remote>/HEAD reference in separate remotes more
[gitweb.git]
/
pack-redundant.c
diff --git
a/pack-redundant.c
b/pack-redundant.c
index 87077e150c1b53a26464089a2cabafafb32e6636..6bc3bdf3f4c33f369c63acf9284ce9af18286184 100644
(file)
--- a/
pack-redundant.c
+++ b/
pack-redundant.c
@@
-550,6
+550,9
@@
static struct pack_list * add_pack(struct packed_git *p)
l.pack = p;
llist_init(&l.all_objects);
+ if (open_pack_index(p))
+ return NULL;
+
base = p->index_data;
base += 256 * 4 + ((p->index_version < 2) ? 4 : 8);
step = (p->index_version < 2) ? 24 : 20;