X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=sha1_file.c;h=27f3b9b278a97f66f92ca61a2bc39e30f0a70317;hb=1017c1abcb6d733e1de83eb5a1cf7e1bf4ad6aca;hp=34013014442e18bd02ae0ce33df34a89ec8d6171;hpb=6fdab32e14e2bca05ae6471502bcdfd35b381564;p=git.git diff --git a/sha1_file.c b/sha1_file.c index 340130144..27f3b9b27 100644 --- a/sha1_file.c +++ b/sha1_file.c @@ -1987,7 +1987,7 @@ off_t find_pack_entry_one(const unsigned char *sha1, 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) @@ -2038,7 +2038,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;