]> git.ipfire.org Git - thirdparty/git.git/blobdiff - fast-import.c
fsck: use ERROR_MULTI_PACK_INDEX
[thirdparty/git.git] / fast-import.c
index 89bb0c9db3de9b380aad53709d882cb04f7d054a..f8c3acd3b5577caa24c13402ea2b6f733e41aec5 100644 (file)
@@ -1068,7 +1068,7 @@ static int store_object(
                duplicate_count_by_type[type]++;
                return 1;
        } else if (find_sha1_pack(oid.hash,
-                                 get_packed_git(the_repository))) {
+                                 get_all_packs(the_repository))) {
                e->type = type;
                e->pack_id = MAX_PACK_ID;
                e->idx.offset = 1; /* just not zero! */
@@ -1266,7 +1266,7 @@ static void stream_blob(uintmax_t len, struct object_id *oidout, uintmax_t mark)
                truncate_pack(&checkpoint);
 
        } else if (find_sha1_pack(oid.hash,
-                                 get_packed_git(the_repository))) {
+                                 get_all_packs(the_repository))) {
                e->type = OBJ_BLOB;
                e->pack_id = MAX_PACK_ID;
                e->idx.offset = 1; /* just not zero! */