Skip to content

Commit

Permalink
fix ticket #273
Browse files Browse the repository at this point in the history
  • Loading branch information
timfel committed Oct 14, 2010
1 parent 371088b commit 978e5f9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion plugins/project/lib/project/file_list.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,13 @@ def find(*paths)
paths.collect!{|d| d.dup}
while file = paths.shift
begin
stat = File.lstat(file)
if File.symlink? file
real_file = File.expand_path(File.join("..", File.readlink(file)), file)
real_file = File.expand_path(File.join("..", File.readlink(real_file)), real_file) while File.symlink? real_file
stat = File.lstat(real_file)
else
stat = File.lstat(file)
end
unless file =~ /\.git|\.yardoc|\.svn/
unless stat.directory?
files[file.dup] = stat.mtime
Expand Down

0 comments on commit 978e5f9

Please sign in to comment.