From df3cdfccb095d62812761928e733a9897f174972 Mon Sep 17 00:00:00 2001 From: Vanisper <19404010099@stu.hut.edu.cn> Date: Wed, 19 Feb 2025 21:05:04 +0800 Subject: [PATCH] fix(git_utils): allow duplicate vscode-merge-base sections with strict=False (#1561) - 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 8785bb6d..7313bab1 100644 --- a/glob/git_utils.py +++ b/glob/git_utils.py @@ -40,7 +40,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():