mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 17:55:01 +00:00
fix: Remove unnecessary default flag in git config retrieval
This commit is contained in:
parent
3cb6ec9ddb
commit
a3c0d628a1
1 changed files with 2 additions and 2 deletions
|
@ -126,8 +126,8 @@ def setup_git(git_root, io):
|
|||
if not repo:
|
||||
return
|
||||
|
||||
user_name = repo.git.config("--default", "", "--get", "user.name") or None
|
||||
user_email = repo.git.config("--default", "", "--get", "user.email") or None
|
||||
user_name = repo.git.config("--get", "user.name") or None
|
||||
user_email = repo.git.config("--get", "user.email") or None
|
||||
|
||||
if user_name and user_email:
|
||||
return repo.working_tree_dir
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue