diff options
author | Junio C Hamano <gitster@pobox.com> | 2015-05-11 14:23:40 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-05-11 14:23:41 -0700 |
commit | cedeffeee06f7ae5982aa5e08fad78a90c4331bf (patch) | |
tree | 25529010e1eb7d61322214af3c3ba72cba40f30c /sha1_file.c | |
parent | 68a2e6a2c80303144807c8c91a087427e3c8e727 (diff) | |
parent | 319b678a7b7c7fd03242b2b91d936f65e798cd06 (diff) | |
download | git-cedeffeee06f7ae5982aa5e08fad78a90c4331bf.tar.gz |
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 '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 47c4929eb7..7634917e4e 100644 --- a/sha1_file.c +++ b/sha1_file.c @@ -2473,10 +2473,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); |