Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion lib/github_changelog_generator/octo_fetcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -386,9 +386,15 @@ def commits_in_tag(sha, shas = Set.new)
queue = [current]
while queue.any?
commit = queue.shift
# If we've already processed this sha, just grab it's parents from the cache
if @commits_in_tag_cache.key?(commit[:sha])
# If we've already processed this sha in a previous run, just grab
# its parents from the cache
shas.merge(@commits_in_tag_cache[commit[:sha]])
elsif shas.include?(commit[:sha])
# If we've already processed this sha in the current run, stop there
# for the current commit because its parents have already been
# queued/processed. Jump to the next queued commit.
next
else
shas.add(commit[:sha])
commit[:parents].each do |p|
Expand Down