mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 04:14:59 +00:00
fix: Normalize git config include path for cross-platform compatibility
This commit is contained in:
parent
ff3d2b006f
commit
961fdf7029
1 changed files with 3 additions and 1 deletions
|
@ -791,8 +791,10 @@ class TestMain(TestCase):
|
|||
|
||||
# Set up main git config with include directive
|
||||
git_config = git_dir / ".git" / "config"
|
||||
# Use normalized path with forward slashes for git config
|
||||
include_path = str(include_config).replace("\\", "/")
|
||||
with open(git_config, "a") as f:
|
||||
f.write(f"\n[include]\n path = {include_config}\n")
|
||||
f.write(f"\n[include]\n path = {include_path}\n")
|
||||
|
||||
# Read the modified config file
|
||||
modified_config_content = git_config.read_text()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue