Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix mojombo/grit#41 using suggestion from msgerbush.

  • Loading branch information...
commit ae888c7899c565371daa3177a80a0c72b39d388d 1 parent e58bca8
Chris Cleeland authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/bugspots/scanner.rb
View
4 lib/bugspots/scanner.rb
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.