Skip to content

Commit

Permalink
Exttend list of next_commits instead of creating a new list
Browse files Browse the repository at this point in the history
  • Loading branch information
chme committed Mar 13, 2024
1 parent 85c04fa commit 4603d80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/git_changelog/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ def _assign_previous_versions(self) -> None:
previous_semver = semver
previous_version = next_commit.tag
else:
next_commits = next_commit.parent_commits + next_commits
next_commits.extend(next_commit.parent_commits)

if not previous_version:
previous_version = version.commits[-1].hash
Expand Down

0 comments on commit 4603d80

Please sign in to comment.