X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fgit.git;a=blobdiff_plain;f=sha1_file.c;h=27f3b9b278a97f66f92ca61a2bc39e30f0a70317;hp=34013014442e18bd02ae0ce33df34a89ec8d6171;hb=bc1bbe0c19a6ff39522b4fa3259f34150e308e1f;hpb=cdc2b2f32cbeab0e2496a59a03a52043f59ebea9 diff --git a/sha1_file.c b/sha1_file.c index 3401301444..27f3b9b278 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;