Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #15 from msgerbush/remove_old_files

Remove old files
  • Loading branch information...
commit a9debf98a31d8f916333f9a557a479c1bd9a25d2 2 parents f93134d + 640fd31
@igrigorik igrigorik authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/bugspots/scanner.rb
View
3  lib/bugspots/scanner.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.