summaryrefslogtreecommitdiffstats
path: root/lib/redmine/scm/adapters/filesystem_adapter.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-06-08 15:44:23 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-06-08 15:44:23 +0000
commita0d141460655e0bd6e3b2b6e8ccccddc34ade68a (patch)
tree2bcb426461b2e30c48a80ecd7bb90aa336571475 /lib/redmine/scm/adapters/filesystem_adapter.rb
parent5dea2007746a5d7027cb5b3c70674e94c3563f37 (diff)
downloadredmine-a0d141460655e0bd6e3b2b6e8ccccddc34ade68a.tar.gz
redmine-a0d141460655e0bd6e3b2b6e8ccccddc34ade68a.zip
Filesystem adapter: read files in binary mode.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1510 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/scm/adapters/filesystem_adapter.rb')
-rw-r--r--lib/redmine/scm/adapters/filesystem_adapter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/scm/adapters/filesystem_adapter.rb b/lib/redmine/scm/adapters/filesystem_adapter.rb
index d300f6cbb..99296a090 100644
--- a/lib/redmine/scm/adapters/filesystem_adapter.rb
+++ b/lib/redmine/scm/adapters/filesystem_adapter.rb
@@ -72,7 +72,7 @@ module Redmine
end
def cat(path, identifier=nil)
- File.new(target(path)).read
+ File.new(target(path), "rb").read
end
private