catch all git.exc.ODBError

This commit is contained in:
Paul Gauthier 2024-08-31 08:24:53 -07:00
parent c32a991b2c
commit 72c9ac460b
5 changed files with 9 additions and 9 deletions

View file

@ -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: