From: Junio C Hamano Date: Mon, 20 Dec 2010 02:32:06 GMT Subject: Re: [PATCH 2/2] fill_textconv(): Don't get/put cache if sha1 is not valid Message-ID: <7vhbe9dvix.fsf@alter.siamese.dyndns.org> In-Reply-To: <14308c2dd50037246e319649944d308b9f32fc39.1292681111.git.kirr@landau.phys.spbu.ru> Kirill Smelkov writes: > It turned out, under blame there are requests to fill_textconv() with > sha1=0000000000000000000000000000000000000000 and sha1_valid=0. The code shouldn't even look at sha1[] if sha1_valid is false, as we do not know the hash value for the blob (reading from the working tree). Thanks.