From 06babbec7e788f2f3684f257ac817b424aedbf46 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sat, 10 Jun 2017 04:29:15 +0000 Subject: remove is_binary_data? from String (#25563) git-svn-id: http://svn.redmine.org/redmine/trunk@16644 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/repositories_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers') diff --git a/app/controllers/repositories_controller.rb b/app/controllers/repositories_controller.rb index cbe38210e..2a7642772 100644 --- a/app/controllers/repositories_controller.rb +++ b/app/controllers/repositories_controller.rb @@ -172,7 +172,7 @@ class RepositoriesController < ApplicationController return true if Redmine::MimeType.is_type?('text', path) # Ruby 1.8.6 has a bug of integer divisions. # http://apidock.com/ruby/v1_8_6_287/String/is_binary_data%3F - return false if ent.is_binary_data? + return false if Redmine::Scm::Adapters::ScmData.binary?(ent) true end private :is_entry_text_data? -- cgit v1.2.3