diff options
author | Junio C Hamano <gitster@pobox.com> | 2015-06-05 12:00:07 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-06-05 12:00:07 -0700 |
commit | 3c91e9966aae9ad73a27f7066551b2861d8c8849 (patch) | |
tree | 82710472d9b3cbb165ce0d19b9df3af078c92e56 /builtin | |
parent | Merge branch 'tb/blame-resurrect-convert-to-git' into maint (diff) | |
parent | sha1_file: squelch "packfile cannot be accessed" warnings (diff) | |
download | tgif-3c91e9966aae9ad73a27f7066551b2861d8c8849.tar.xz |
Merge branch 'jk/sha1-file-reduce-useless-warnings' into maint
* jk/sha1-file-reduce-useless-warnings:
sha1_file: squelch "packfile cannot be accessed" warnings
Diffstat (limited to 'builtin')
-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; } |