Code

downgrade "packfile cannot be accessed" errors to warnings
[git.git] / sha1_file.c
index 133aa4fe701b9e091079fbe86be05ab71c54cbdc..cad1f22002d87c3bb015917c3f8d3292c1451639 100644 (file)
@@ -2035,7 +2035,7 @@ static int find_pack_entry(const unsigned char *sha1, struct pack_entry *e)
                         * was loaded!
                         */
                        if (!is_pack_valid(p)) {
-                               error("packfile %s cannot be accessed", p->pack_name);
+                               warning("packfile %s cannot be accessed", p->pack_name);
                                goto next;
                        }
                        e->offset = offset;