From: Dustin Spicuzza Date: Mon, 29 Apr 2019 21:58:47 +0000 (-0700) Subject: cvsexportcommit: force crlf translation X-Git-Tag: v2.22.0-rc1~16^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/1ac8d363eec3ec137af7ed832dc524b23f81ac64?hp=83232e38648b51abbcbdb56c94632b6906cc85a6 cvsexportcommit: force crlf translation When using cvsnt + msys + git, it seems like the output of cvs status had \r\n in it, and caused the command to fail. This fixes that. Signed-off-by: Dustin Spicuzza Signed-off-by: Johannes Schindelin Signed-off-by: Junio C Hamano --- diff --git a/git-cvsexportcommit.perl b/git-cvsexportcommit.perl index d13f02da95..fc00d5946a 100755 --- a/git-cvsexportcommit.perl +++ b/git-cvsexportcommit.perl @@ -431,6 +431,7 @@ END sub safe_pipe_capture { my @output; if (my $pid = open my $child, '-|') { + binmode($child, ":crlf"); @output = (<$child>); close $child or die join(' ',@_).": $! $?"; } else {