Merge branch 'jk/sha1-file-reduce-useless-warnings'
* jk/sha1-file-reduce-useless-warnings: sha1_file: squelch "packfile cannot be accessed" warnings
This commit is contained in:
@ -961,10 +961,8 @@ static int want_object_in_pack(const unsigned char *sha1,
|
||||
off_t offset = find_pack_entry_one(sha1, p);
|
||||
if (offset) {
|
||||
if (!*found_pack) {
|
||||
if (!is_pack_valid(p)) {
|
||||
warning("packfile %s cannot be accessed", p->pack_name);
|
||||
if (!is_pack_valid(p))
|
||||
continue;
|
||||
}
|
||||
*found_offset = offset;
|
||||
*found_pack = p;
|
||||
}
|
||||
|
Reference in New Issue
Block a user