git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 1/3] t9400: Add test cases for config file handling

From
Junio C Hamano <junkio@cox.net>
Date
May 21, 2007, 16:38 UTC
Message-ID
<7vtzu6dtd2.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20070521163145.GM4085@planck.djpig.de>
Frank Lichtenheld <frank@lichtenheld.de> writes:
Show 27 quoted lines
> On Sun, May 20, 2007 at 05:57:27PM -0700, Junio C Hamano wrote:
>> This part seems to fail for me and gets an "unexpected cvs success".
>
> Note the note in the patch ;)
>
>> diff --git a/git-cvsserver.perl b/git-cvsserver.perl
>> index fcfb99d..1de5177 100755
>> --- a/git-cvsserver.perl
>> +++ b/git-cvsserver.perl
>> @@ -192,11 +192,9 @@ sub req_Root
>>          }
>>      }
>>  
>> -    unless ( ($cfg->{gitcvs}{$state->{method}}{enabled}
>> -	      and $cfg->{gitcvs}{$state->{method}}{enabled} =~ /^\s*(1|true|yes)\s*$/i)
>> -	     or ($cfg->{gitcvs}{enabled}
>> -	      and $cfg->{gitcvs}{enabled} =~ /^\s*(1|true|yes)\s*$/i) )
>> -    {
>> +    my $enabled = ($cfg->{gitcvs}{$state->{method}}{enabled}
>> +		   || $cfg->{gitcvs}{enabled});
>> +    unless ($enabled && $enabled =~ /^\s*(1|true|yes)\s*$/i) {
>>          print "E GITCVS emulation needs to be enabled on this repo\n";
>>          print "E the repo config file needs a [gitcvs] section added, and the parameter 'enabled' set to 1\n";
>>          print "E \n";
>
> Yeah, should probably have fixed that myself before sending, but the
> other patches were already prepared ;)
Ok, so that's an Ack?
Previous: Frank LichtenheldNext: Frank Lichtenheld
Message 6 of 7 in “t9400: Add test cases for config file handling”
  1. 1/3 t9400: Add test cases for config file handlingFrank Lichtenheld, May 20, 2007
  2. 2/3 t9400: Add some more cvs update testsFrank Lichtenheld, May 20, 2007
  3. 3/3 t9400: Add some basic pserver testsFrank Lichtenheld, May 20, 2007
  4. Junio C HamanoMay 21, 2007
  5. Frank LichtenheldMay 21, 2007
  6. Junio C HamanoMay 21, 2007
  7. Frank LichtenheldMay 21, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.