diff --git a/lib/redmine/scm/adapters/filesystem_adapter.rb b/lib/redmine/scm/adapters/filesystem_adapter.rb index c06b7e6e3f..d300f6cbbb 100644 --- a/lib/redmine/scm/adapters/filesystem_adapter.rb +++ b/lib/redmine/scm/adapters/filesystem_adapter.rb @@ -60,8 +60,7 @@ module Redmine # below : list unreadable files, but dont link them. :path => File.readable?(target) ? relative_path : "", :kind => (File.directory?(target) ? 'dir' : 'file'), - :size => if (File.directory?(target)) - nil else File.size(target) end, + :size => (File.directory?(target) ? nil : [File.size(target)].pack('l').unpack('L').first), :lastrev => Revision.new({:time => (File.mtime(target)).localtime, })