diff --git a/sha1_file.c b/sha1_file.c
index 34013014442e18bd02ae0ce33df34a89ec8d6171..27f3b9b278a97f66f92ca61a2bc39e30f0a70317 100644 (file)
--- a/sha1_file.c
+++ b/sha1_file.c
return 0;
}
return 0;
}
-static int is_pack_valid(struct packed_git *p)
+int is_pack_valid(struct packed_git *p)
{
/* An already open pack is known to be valid. */
if (p->pack_fd != -1)
{
/* An already open pack is known to be valid. */
if (p->pack_fd != -1)
* was loaded!
*/
if (!is_pack_valid(p)) {
* 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;
goto next;
}
e->offset = offset;