mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 02:05: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
|
@ -1187,11 +1187,7 @@ def parse_quoted_filenames(args):
|
||||||
|
|
||||||
|
|
||||||
def get_help_md():
|
def get_help_md():
|
||||||
from aider.coders import Coder
|
md = Commands(None, None).get_help_md()
|
||||||
from aider.models import Model
|
|
||||||
|
|
||||||
coder = Coder(Model("gpt-3.5-turbo"), None)
|
|
||||||
md = coder.commands.get_help_md()
|
|
||||||
return md
|
return md
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -300,6 +300,10 @@ def sanity_check_repo(repo, io):
|
||||||
if not repo:
|
if not repo:
|
||||||
return True
|
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:
|
try:
|
||||||
repo.get_tracked_files()
|
repo.get_tracked_files()
|
||||||
if not repo.git_repo_error:
|
if not repo.git_repo_error:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue