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 <dustin@virtualroadside.com> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Dustin Spicuzza committed
Apr 29, 2019 at 14:58 UTC
1ac8d363eec3ec137af7ed832dc524b23f81ac64
1 file changed
+1
git-cvsexportcommit.perl
+1
@@ -431,6 +431,7 @@ END
431
sub safe_pipe_capture {
432
my @output;
433
if (my $pid = open my $child, '-|') {
434
+ binmode($child, ":crlf");
435
@output = (<$child>);
436
close $child or die join(' ',@_).": $! $?";
437
} else {