On Sun, Mar 02, 2008 at 06:33:28PM -0500, Joey Hess wrote:
> This gets logged here a few times a day:
> 
> [Sun Mar  2 12:12:49 2008] index.cgi: Use of uninitialized value in pattern 
> match (m//) at /srv/web/git.ikiwiki.info/index.cgi line 2942, <$fd> line 1.
> 
> Line 2942 is the return line here, so $diffinfo->{'status_str'} must be 
> undefined.
> 
> sub is_deleted {
>         my $diffinfo = shift;
> 
>         return $diffinfo->{'status_str'} =~ /D/;
> }
> 
> The request in the web server log that seems to correspond to the message
> is this one:
> 
> 74.6.27.36 - - [02/Mar/2008:12:12:49 -0500] "GET 
> /?p=ikiwiki;a=blobdiff;h=9bf54298199d130dc3187c97c784df20c7e45e6e;hp=af27f1d7eb06631a06c4cb5c7583be23abc2b829;hb=cabd5140c4d6255afdcb527e7f6d7e7815e4aa43;f=doc/ikiwiki.setup
>  HTTP/1.0" 200 6511 "-" "Mozilla/5.0 (compatible; Yahoo! Slurp; 
> http://help.yahoo.com/help/us/ysearch/slurp)"
> 
> And indeed, I can reproduce the uninitialised value error by going to the url
> http://git.ikiwiki.info/?p=ikiwiki;a=blobdiff;h=9bf54298199d130dc3187c97c784df20c7e45e6e;hp=af27f1d7eb06631a06c4cb5c7583be23abc2b829;hb=cabd5140c4d6255afdcb527e7f6d7e7815e4aa43;f=doc/ikiwiki.setup
> The page there looks ok, FWIW.

Hi Joey,

in the link the hpb= parameter is missing (hash_parent_base), and that's
causing the warning.  How is the link generated, is it gitweb itself,
some other software, or a human?  If it's gitweb, can you find out,
where to click to get this?

Thanks, Gerrit.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to