scm: cvs: fix most binary files become corrupted on Windows (#6090).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4815 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-02-12 09:43:57 +00:00
parent 4caca2492b
commit 2a11abdcfc
1 changed files with 1 additions and 0 deletions

View 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