mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 18:25:00 +00:00
fix: Simplify get_help_md function in commands.py
This commit is contained in:
parent
05b3b3df88
commit
36fa773376
2 changed files with 5 additions and 5 deletions
|
@ -300,6 +300,10 @@ def sanity_check_repo(repo, io):
|
|||
if not repo:
|
||||
return True
|
||||
|
||||
if not repo.repo.working_tree_dir:
|
||||
io.tool_error("The git repo does not seem to have a working tree?")
|
||||
return False
|
||||
|
||||
try:
|
||||
repo.get_tracked_files()
|
||||
if not repo.git_repo_error:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue