]> source.dussan.org Git - redmine.git/commitdiff
scm: cvs: fix most binary files become corrupted on Windows (#6090).
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 12 Feb 2011 09:43:57 +0000 (09:43 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 12 Feb 2011 09:43:57 +0000 (09:43 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4815 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/scm/adapters/cvs_adapter.rb

index 803af604ccf77b0ef3c714158db07b101489fbed..1cda3025067da08cb4bf7c85b2659b0be39e7d65 100644 (file)
@@ -249,6 +249,7 @@ module Redmine
           cmd << " -p #{shell_quote path_with_project}"
           cat = nil
           shellout(cmd) do |io|
+            io.binmode
             cat = io.read
           end
           return nil if $? && $?.exitstatus != 0