From 740ad6eca48c0f82b0db909aeaf4a0acbbf1bea2 Mon Sep 17 00:00:00 2001 From: DaniPopes <57450786+DaniPopes@users.noreply.github.com> Date: Fri, 8 Nov 2024 05:51:08 +0100 Subject: [PATCH] fix --- git-cliff/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/git-cliff/src/lib.rs b/git-cliff/src/lib.rs index e2aca2b04f..8d2469a355 100644 --- a/git-cliff/src/lib.rs +++ b/git-cliff/src/lib.rs @@ -174,6 +174,7 @@ fn process_repository<'a>( tags.get_index(0).map(|tag| &tag.name), ) { if tags.len() == 1 { + let tag2 = tags.get_commit(tag2).unwrap(); commit_range = Some(tag2.to_owned()); } else { commit_range = Some(format!("{tag1}..{tag2}"));