From: Sven Strickroth Date: Tue, 27 Dec 2011 16:07:20 GMT Subject: [PATCH 4/5] ignore empty *_ASKPASS variables Message-ID: <4EF9ED38.9010502@tu-clausthal.de> In-Reply-To: <4EF9EBF4.7070200@tu-clausthal.de> Signed-off-by: Sven Strickroth --- 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>; -- Best regards, Sven Strickroth ClamAV, a GPL anti-virus toolkit http://www.clamav.net PGP key id F5A9D4C4 @ any key-server