1
1
mirror of https://github.com/orhun/git-cliff.git synced 2024-12-13 10:45:07 +03:00

fix(changelog): do not skip all tags when skip_tags is empty (#136)

This is a regression in 8b17a1f026
This commit is contained in:
Orhun Parmaksız 2023-01-13 17:25:39 +03:00
parent 2937f778ea
commit eee35ad1ee
No known key found for this signature in database
GPG Key ID: F83424824B3E4B90

View File

@ -60,11 +60,10 @@ fn check_new_version() {
/// repository individually.
fn process_repository<'a>(
repository: &'static Repository,
mut config: Config,
config: Config,
args: &Opt,
) -> Result<Vec<Release<'a>>> {
let mut tags = repository.tags(&config.git.tag_pattern, args.topo_order)?;
config.git.skip_tags = config.git.skip_tags.filter(|r| !r.as_str().is_empty());
let skip_regex = config.git.skip_tags.as_ref();
let ignore_regex = config.git.ignore_tags.as_ref();
tags = tags
@ -317,6 +316,7 @@ pub fn run(mut args: Opt) -> Result<()> {
args.topo_order = topo_order;
}
}
config.git.skip_tags = config.git.skip_tags.filter(|r| !r.as_str().is_empty());
// Process the repository.
let repositories = args.repository.clone().unwrap_or(vec![env::current_dir()?]);