mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-07 13:15:00 +00:00
catch all git errors
This commit is contained in:
parent
72c9ac460b
commit
5a6f7b3cd1
5 changed files with 9 additions and 11 deletions
|
@ -450,7 +450,7 @@ class Commands:
|
|||
try:
|
||||
remote_head = self.coder.repo.repo.git.rev_parse(f"origin/{current_branch}")
|
||||
has_origin = True
|
||||
except git.exc.ODBError:
|
||||
except (git.exc.ODBError, git.exc.GitError):
|
||||
has_origin = False
|
||||
|
||||
if has_origin:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue