Permalink
Browse files

Merge pull request #15 from msgerbush/remove_old_files

Remove old files
  • Loading branch information...
2 parents f93134d + 640fd31 commit a9debf98a31d8f916333f9a557a479c1bd9a25d2 @igrigorik committed Jan 5, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/bugspots/scanner.rb
View
@@ -15,9 +15,10 @@ def self.scan(repo, branch = "master", depth = 500, words = nil)
message_matchers = /fix(es|ed)?|close(s|d)?/i
end
+ tree = repo.tree(branch)
repo.commits(branch, depth).each do |commit|
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)
end
end

0 comments on commit a9debf9

Please sign in to comment.