Skip to content

Commit

Permalink
Merge pull request #15 from msgerbush/remove_old_files
Browse files Browse the repository at this point in the history
Remove old files
  • Loading branch information
igrigorik committed Jan 5, 2012
2 parents f93134d + 640fd31 commit a9debf9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/bugspots/scanner.rb
Expand Up @@ -15,9 +15,10 @@ def self.scan(repo, branch = "master", depth = 500, words = nil)
message_matchers = /fix(es|ed)?|close(s|d)?/i message_matchers = /fix(es|ed)?|close(s|d)?/i
end end


tree = repo.tree(branch)
repo.commits(branch, depth).each do |commit| repo.commits(branch, depth).each do |commit|
if commit.message =~ message_matchers if commit.message =~ message_matchers
files = commit.stats.files.map {|s| s.first} files = commit.stats.files.map {|s| s.first}.select{ |s| tree/s }
fixes << Fix.new(commit.short_message, commit.date, files) fixes << Fix.new(commit.short_message, commit.date, files)
end end
end end
Expand Down

0 comments on commit a9debf9

Please sign in to comment.