mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-07 05:05:01 +00:00
catch all git.exc.ODBError
This commit is contained in:
parent
c32a991b2c
commit
72c9ac460b
5 changed files with 9 additions and 9 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.GitCommandError:
|
||||
except git.exc.ODBError:
|
||||
has_origin = False
|
||||
|
||||
if has_origin:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue