Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2015-05-12 00:23:40 +0300
committerJunio C Hamano <gitster@pobox.com>2015-05-12 00:23:41 +0300
commitcedeffeee06f7ae5982aa5e08fad78a90c4331bf (patch)
tree25529010e1eb7d61322214af3c3ba72cba40f30c /sha1_file.c
parent68a2e6a2c80303144807c8c91a087427e3c8e727 (diff)
parent319b678a7b7c7fd03242b2b91d936f65e798cd06 (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 'sha1_file.c')
-rw-r--r--sha1_file.c4
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);