Skip to content

Commit

Permalink
fix: allow version bump with a single previous release
Browse files Browse the repository at this point in the history
  • Loading branch information
nappa85 authored and orhun committed Dec 3, 2023
1 parent 41920f8 commit d65aec9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-cliff/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ fn process_repository<'a>(
}
}

if release_index > 1 {
if release_index > 0 {
previous_release.previous = None;
releases[release_index].previous = Some(Box::new(previous_release));
}
Expand Down

0 comments on commit d65aec9

Please sign in to comment.