diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-08-07 12:43:32 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-08-07 12:43:32 +0000 |
commit | 28f513b48ca4ee99be3753257b40332b8194ae83 (patch) | |
tree | d4648fda2d779e060f54eeb6b5dc219cdb76ccac | |
parent | e8980ad7704dcaee6e08dad1478a1987e0fd4225 (diff) | |
download | redmine-28f513b48ca4ee99be3753257b40332b8194ae83.tar.gz redmine-28f513b48ca4ee99be3753257b40332b8194ae83.zip |
fix source indent of lib/redmine/scm/adapters/filesystem_adapter.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19954 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | lib/redmine/scm/adapters/filesystem_adapter.rb | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/lib/redmine/scm/adapters/filesystem_adapter.rb b/lib/redmine/scm/adapters/filesystem_adapter.rb index 1bd559c49..829bd6513 100644 --- a/lib/redmine/scm/adapters/filesystem_adapter.rb +++ b/lib/redmine/scm/adapters/filesystem_adapter.rb @@ -80,14 +80,16 @@ module Redmine p1 = File.readable?(t1) ? relative_path : "" utf_8_path = scm_iconv('UTF-8', @path_encoding, p1) entries << - Entry.new({ :name => scm_iconv('UTF-8', @path_encoding, File.basename(e1)), - # below : list unreadable files, but dont link them. - :path => utf_8_path, - :kind => (File.directory?(t1) ? 'dir' : 'file'), - :size => (File.directory?(t1) ? nil : File.size(t1)), - :lastrev => - Revision.new({:time => (File.mtime(t1)) }) - }) + Entry.new( + { + :name => scm_iconv('UTF-8', @path_encoding, File.basename(e1)), + # below : list unreadable files, but dont link them. + :path => utf_8_path, + :kind => (File.directory?(t1) ? 'dir' : 'file'), + :size => (File.directory?(t1) ? nil : File.size(t1)), + :lastrev => Revision.new({:time => (File.mtime(t1))}) + } + ) end end entries.sort_by_name |