wincred: accept CRLF on stdin to simplify console usage
commit3b12f46ab382b280effa15a925b6195abaebf0a3
authorKarsten Blees <blees@dcon.de>
Wed, 9 Jan 2013 11:49:26 +0000 (9 12:49 +0100)
committerErik Faye-Lund <kusmabite@gmail.com>
Tue, 26 Feb 2013 16:42:24 +0000 (26 17:42 +0100)
tree8e6ee876a57d00c346f4ef3ec87dc07b3434682b
parent4dac0679feaebbf6545daec14480cf6b94cb74ed
wincred: accept CRLF on stdin to simplify console usage

The windows credential helper currently only accepts LF on stdin, but bash
and cmd.exe both send CRLF. This prevents interactive use in the console.

Change the stdin parser to optionally accept CRLF.

Signed-off-by: Karsten Blees <blees@dcon.de>
Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com>
contrib/credential/wincred/git-credential-wincred.c