diff options
author | Junio C Hamano <gitster@pobox.com> | 2015-05-12 00:23:40 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-05-12 00:23:41 +0300 |
commit | cedeffeee06f7ae5982aa5e08fad78a90c4331bf (patch) | |
tree | 25529010e1eb7d61322214af3c3ba72cba40f30c /builtin/pack-objects.c | |
parent | 68a2e6a2c80303144807c8c91a087427e3c8e727 (diff) | |
parent | 319b678a7b7c7fd03242b2b91d936f65e798cd06 (diff) |
Merge branch 'jk/sha1-file-reduce-useless-warnings'
* jk/sha1-file-reduce-useless-warnings:
sha1_file: squelch "packfile cannot be accessed" warnings
Diffstat (limited to 'builtin/pack-objects.c')
-rw-r--r-- | builtin/pack-objects.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/builtin/pack-objects.c b/builtin/pack-objects.c index c3a75166bd..c067107a6a 100644 --- a/builtin/pack-objects.c +++ b/builtin/pack-objects.c @@ -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; } |