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

Fix for bug 41 #18

Merged
merged 1 commit into from Apr 17, 2012
Jump to file or symbol
Failed to load files and symbols.
+3 −1
Split
View
@@ -15,7 +15,9 @@ def self.scan(repo, branch = "master", depth = 500, regex = nil)
regex ||= /fix(es|ed)?|close(s|d)?/i
tree = repo.tree(branch)
- repo.commits(branch, depth).each do |commit|
+
+ commit_list = repo.git.rev_list({:max_count => false, :no_merges => true, :pretty => "raw", :timeout => false}, branch)
+ Grit::Commit.list_from_string(repo, commit_list).each do |commit|
if commit.message =~ regex
files = commit.stats.files.map {|s| s.first}.select{ |s| tree/s }
fixes << Fix.new(commit.short_message, commit.date, files)