From d9adaa50202dc148771068c2cdf2e68a53460534 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Tue, 4 Feb 2025 07:59:26 -0800 Subject: [PATCH] fix: Handle git errors in check_gitignore function --- aider/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aider/main.py b/aider/main.py index ad2e9cab2..5f876ce1f 100644 --- a/aider/main.py +++ b/aider/main.py @@ -181,6 +181,8 @@ def check_gitignore(git_root, io, ask=True): return else: content = "" + except ANY_GIT_ERROR: + return if ask: io.tool_output("You can skip this check with --no-gitignore") if not io.confirm_ask(f"Add {', '.join(patterns_to_add)} to .gitignore (recommended)?"):