mirror of
https://github.com/redmine/redmine.git
synced 2025-12-16 05:20:28 +01:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user