From cc7c030b52def636cf3d3d4276b47af0085c9a7b Mon Sep 17 00:00:00 2001 From: Vanisper <273266469@qq.com> Date: Tue, 18 Feb 2025 07:48:17 +0800 Subject: [PATCH] fix(git_utils): allow duplicate vscode-merge-base sections with strict=False - Set ConfigParser strict mode to False - Resolves issue #1529 by permitting section duplicates - Allow `vscode-merge-base` to appear multiple times in `.git/config` --- glob/git_utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/glob/git_utils.py b/glob/git_utils.py index 720edd4b..948485a5 100644 --- a/glob/git_utils.py +++ b/glob/git_utils.py @@ -37,7 +37,8 @@ def git_url(fullpath): if not os.path.exists(git_config_path): return None - config = configparser.ConfigParser() + # Set `strict=False` to allow duplicate `vscode-merge-base` sections, addressing + config = configparser.ConfigParser(strict=False) config.read(git_config_path) for k, v in config.items():