From: Junio C Hamano Date: Tue, 27 Dec 2011 21:00:12 GMT Subject: Re: [PATCH 4/5] ignore empty *_ASKPASS variables Message-ID: <7vhb0l6883.fsf@alter.siamese.dyndns.org> In-Reply-To: <4EF9ED38.9010502@tu-clausthal.de> Sven Strickroth writes: > Signed-off-by: Sven Strickroth > --- I *suspect* that this is a fix-up to a bug in patch 1/5 that lets callers call _askpass_prompt helper without checking the value of the "askpass", and if that is the case, this patch should be squashed there. But there is no justification in the proposed log message above, so I cannot tell. > perl/Git.pm | 3 +++ > 1 files changed, 3 insertions(+), 0 deletions(-) > > diff --git a/perl/Git.pm b/perl/Git.pm > index 7fdf805..c6b3e11 100644 > --- a/perl/Git.pm > +++ b/perl/Git.pm > @@ -537,6 +537,9 @@ sub askpass_prompt { > > sub _askpass_prompt { > my ($self, $askpass, $prompt) = _maybe_self(@_); > + unless ($askpass) { > + return undef; > + } > my $ret; > open my $fh, "-|", $askpass, $prompt || return undef; > $ret = <$fh>;