From: Junio C Hamano <gitster@pobox.com>
To: Jakub Narebski <jnareb@gmail.com>
Cc: Petr Baudis <pasky@suse.cz>, <git@vger.kernel.org>
Subject: Re: [PATCH] gitweb: Make config_to_multi return [] instead of [undef]
Date: Sun, 09 Dec 2007 00:29:21 -0800 [thread overview]
Message-ID: <7vlk84s23i.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <m38x45tb9y.fsf@roke.D-201> (Jakub Narebski's message of "Sat, 08 Dec 2007 08:13:45 -0800 (PST)")
Jakub Narebski <jnareb@gmail.com> writes:
> Petr Baudis <pasky@suse.cz> writes:
>
>> This is important for the list of clone urls, where if there are
>> no per-repository clone URL configured, the default base URLs
>> are never used for URL construction with this patch.
>
> Thanks.
>
>> @@ -1512,7 +1512,7 @@ sub config_to_int {
>> sub config_to_multi {
>> my $val = shift;
>>
>> - return ref($val) ? $val : [ $val ];
>> + return ref($val) ? $val : $val ? [ $val ] : [];
>> }
>
> Shouldn't it be
>
> + return ref($val) ? $val : defined($val) ? [ $val ] : [];
I think so. Pasky?
next prev parent reply other threads:[~2007-12-09 8:29 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-08 12:30 [PATCH] gitweb: Make config_to_multi return [] instead of [undef] Petr Baudis
2007-12-08 16:13 ` Jakub Narebski
2007-12-09 8:29 ` Junio C Hamano [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-12-15 14:34 [PATCH 0/3 (resend)] gitweb: Miscelanous fixes Jakub Narebski
2007-12-15 14:36 ` [PATCH] gitweb: Make config_to_multi return [] instead of [undef] Jakub Narebski
2007-12-15 15:05 ` Petr Baudis
2007-12-18 0:12 ` Jakub Narebski
2007-12-18 0:49 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7vlk84s23i.fsf@gitster.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=jnareb@gmail.com \
--cc=pasky@suse.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).