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:
parent
2937f778ea
commit
eee35ad1ee
@ -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()?]);
|
||||
|
Loading…
Reference in New Issue
Block a user