Re: [PATCH 2/2] tests: teach verify_parents to check for extra parents
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- May 6, 2011, 21:42 UTC
- Message-ID
- <20110506214238.GE20182@elie>
- In-Reply-To
- <7vzkmzy0mk.fsf@alter.siamese.dyndns.org>
Junio C Hamano wrote:
> Jonathan Nieder <jrnieder@gmail.com> writes:
Show 9 quoted lines
>> --- a/t/t7600-merge.sh
>> +++ b/t/t7600-merge.sh
>> @@ -89,6 +89,7 @@ verify_parents () {
>> i=$(expr $i + 1) ||
>> return 1
>> done &&
>> + test_must_fail git rev-parse --verify HEAD^$(($# + 1)) &&
>
> Isn't $i at this point the same as that complex $(()) line noise?Yes, that sounds better.