diff options
Diffstat (limited to 'sha1_file.c')
-rw-r--r-- | sha1_file.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sha1_file.c b/sha1_file.c index 3e9f55f1bb..fef54a8811 100644 --- a/sha1_file.c +++ b/sha1_file.c @@ -2441,10 +2441,8 @@ static int fill_pack_entry(const unsigned char *sha1, * answer, as it may have been deleted since the index was * loaded! */ - if (!is_pack_valid(p)) { - warning("packfile %s cannot be accessed", p->pack_name); + if (!is_pack_valid(p)) return 0; - } e->offset = offset; e->p = p; hashcpy(e->sha1, sha1); |