Re: [PATCH v2 1/3] git-svn: Support retrieving passwords with GIT_ASKPASS
Show 6 quoted lines
> +if (! exists $ENV{GIT_ASKPASS}) {
> + if (exists $ENV{SSH_ASKPASS}) {
> + $ENV{GIT_ASKPASS} = $ENV{SSH_ASKPASS};
> + if ($^O eq 'msys') {
> + $ENV{GIT_ASKPASS} =~ s/\\/\\\\/g;
> + $ENV{GIT_ASKPASS} =~ s/(.*)/"$1"/;Don't quote GIT_ASKPASS here.
> + if (exists $ENV{GIT_ASKPASS}) {
> + open(PH, "$ENV{GIT_ASKPASS} \"$prompt\" |"); open(PH, "-|", $ENV{GIT_ASKPASS}, $prompt);and you don't have to do any quoting at all, no?
-- Hannes