git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Password parsing fix on windows

From
Aleksey Vasenev <margtu-fivt@ya.ru>
Date
Oct 30, 2012, 09:37 UTC
Message-ID
<op.wmzjomzi945a05@ratio.ispring.lan>
diff --git a/perl/Git/SVN/Prompt.pm b/perl/Git/SVN/Prompt.pm
index 3a6f8af..ae2aeda 100644
--- a/perl/Git/SVN/Prompt.pm
+++ b/perl/Git/SVN/Prompt.pm
@@ -124,7 +124,7 @@ sub _read_password {
 	if (exists $ENV{GIT_ASKPASS}) {
 		open(PH, "-|", $ENV{GIT_ASKPASS}, $prompt);
 		$password = <PH>;
-		$password =~ s/[\012\015]//; # \n\r
+		$password =~ s/[\012\015]+//; # \n\r
 		close(PH);
 	} else {
 		print STDERR $prompt;
Message 1 of 1 in “Password parsing fix on windows”
  1. Aleksey VasenevOct 30, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.