wincred: accept CRLF on stdin to simplify console usage
commit13a4c0ba2d7e34a2c5c07fc235c39d49b2e61d09
authorKarsten Blees <blees@dcon.de>
Wed, 9 Jan 2013 11:49:26 +0000 (9 12:49 +0100)
committerKarsten Blees <blees@dcon.de>
Wed, 9 Jan 2013 11:49:26 +0000 (9 12:49 +0100)
tree5f3a0fa5fbc0b8a84b0049f5305a9d05fa04b822
parent5d417842efeafb6e109db7574196901c4e95d273
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>
contrib/credential/wincred/git-credential-wincred.c