]> source.dussan.org Git - redmine.git/commitdiff
Merged r4815 from trunk.
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 12 Feb 2011 09:51:21 +0000 (09:51 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 12 Feb 2011 09:51:21 +0000 (09:51 +0000)
scm: cvs: fix most binary files become corrupted on Windows.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.1-stable@4818 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/scm/adapters/cvs_adapter.rb

index 47fac7a3de54ce49593a07ca79a49898d7740115..710706f76c8eff80f1365d9b4b4fe052d9130cdc 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