diff --git a/aider/main.py b/aider/main.py index 059feb365..638eceeb2 100644 --- a/aider/main.py +++ b/aider/main.py @@ -347,7 +347,12 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F conf_fname = Path(".aider.conf.yml") - default_config_files = [conf_fname.resolve()] # CWD + default_config_files = [] + try: + default_config_files += [conf_fname.resolve()] # CWD + except OSError: + pass + if git_root: git_conf = Path(git_root) / conf_fname # git root if git_conf not in default_config_files: diff --git a/aider/prompts.py b/aider/prompts.py index 27d833fdd..8d529233c 100644 --- a/aider/prompts.py +++ b/aider/prompts.py @@ -22,6 +22,8 @@ Reply only with the one-line commit message, without any additional text, explan or line breaks. """ +print(commit_system) + # COMMANDS undo_command_reply = ( "I did `git reset --hard HEAD~1` to discard the last edits. Please wait for further"