summaryrefslogtreecommitdiff
path: root/git-cvsexportcommit.perl
diff options
context:
space:
mode:
authorDustin Spicuzza <dustin@virtualroadside.com>2019-04-29 21:58:47 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-05-07 09:23:27 (GMT)
commit1ac8d363eec3ec137af7ed832dc524b23f81ac64 (patch)
tree5758ab327bd98777adcb485ddf7544ce7ac5ca67 /git-cvsexportcommit.perl
parent83232e38648b51abbcbdb56c94632b6906cc85a6 (diff)
downloadgit-1ac8d363eec3ec137af7ed832dc524b23f81ac64.zip
git-1ac8d363eec3ec137af7ed832dc524b23f81ac64.tar.gz
git-1ac8d363eec3ec137af7ed832dc524b23f81ac64.tar.bz2
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>
Diffstat (limited to 'git-cvsexportcommit.perl')
-rwxr-xr-xgit-cvsexportcommit.perl1
1 files changed, 1 insertions, 0 deletions
diff --git a/git-cvsexportcommit.perl b/git-cvsexportcommit.perl
index d13f02d..fc00d59 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 {