Re: What's cooking in git.git (May 2016, #02; Fri, 6)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Johannes Schindelin <Johannes.Schindelin@xxxxxx> writes:

> On Fri, 6 May 2016, Junio C Hamano wrote:
>
>> * jc/fsck-nul-in-commit (2016-04-14) 2 commits
>>  - fsck: detect and warn a commit with embedded NUL
>>  - fsck_commit_buffer(): do not special case the last validation
>> 
>>  "git fsck" learned to catch NUL byte in a commit object as
>>  potential error and warn.
>> 
>>  What was the status of this one?  Ready to proceed?
>
> I think this code looks fine. Maybe two comments on the test:
>
>>               test_must_fail git -c fsck.nulInCommit=error fsck 2>warn.1 &&
>>               git fsck 2>warn.2 &&
>>               grep nulInCommit warn.2
>
> 1) warn.1 is not used. Maybe skip that redirection?

Or check it for expected result.  I don't know offhand which is better.

> 2) I was under the impression that we preferred test_i18ngrep over grep...

Only when the strings we are expecting are subject to i18n.  I
somehow did not think your report() codepath has any i18n/l10n?


--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]