Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Remove old files #15

Merged
merged 2 commits into from Jan 5, 2012
Jump to file or symbol
Failed to load files and symbols.
+2 −1
Split
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