Skip to content

Commit

Permalink
Do NOT take 'commit email' in the log to mean there is a commit named…
Browse files Browse the repository at this point in the history
… 'email'
  • Loading branch information
indirect committed Mar 21, 2009
1 parent 18e0034 commit e58ecaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/diff_to_html.rb
Expand Up @@ -250,7 +250,7 @@ def diff_between_revisions(rev1, rev2, repo, branch)
commits = [[rev1]]
else
log = Git.log(rev1, rev2)
commits = log.scan /commit\s([a-f0-9]+)/
commits = log.scan /^commit\s([a-f0-9]+)/
end

commits.each_with_index do |commit, i|
Expand Down

0 comments on commit e58ecaa

Please sign in to comment.