mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 09:14:59 +00:00
Do not make .git in $HOME
This commit is contained in:
parent
e63c104f83
commit
a9b3fccce8
1 changed files with 3 additions and 0 deletions
|
@ -62,6 +62,9 @@ def setup_git(git_root, io):
|
|||
|
||||
if git_root:
|
||||
repo = git.Repo(git_root)
|
||||
elif Path.cwd() == Path.home():
|
||||
io.tool_error("You should probably run aider in a directory, not your home dir.")
|
||||
return
|
||||
elif io.confirm_ask("No git repo found, create one to track aider's changes (recommended)?"):
|
||||
git_root = str(Path.cwd().resolve())
|
||||
repo = make_new_repo(git_root, io)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue