From c8723155465cf42d97ef505c54ee983b9880eefb Mon Sep 17 00:00:00 2001 From: Tuomas Tikkanen Date: Tue, 17 Dec 2024 11:13:59 +0200 Subject: [PATCH] fix: resolve config path to align with the actual repository root --- bumpversion/config/files.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bumpversion/config/files.py b/bumpversion/config/files.py index 134eb8ab..b29a53e0 100644 --- a/bumpversion/config/files.py +++ b/bumpversion/config/files.py @@ -128,7 +128,7 @@ def update_config_file( else: logger.info("\n%sProcessing config file: %s", logger.indent_str, config_file) logger.indent() - config_path = Path(config_file) + config_path = Path(config_file).resolve() if config.scm_info.tool and not config.scm_info.path_in_repo(config_path): logger.info("\n%sConfiguration file is outside of the repo. Not going to change.", logger.indent_str)