catch all git errors

This commit is contained in:
Paul Gauthier 2024-08-31 08:36:00 -07:00
parent 72c9ac460b
commit 5a6f7b3cd1
5 changed files with 9 additions and 11 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.ODBError:
except (git.exc.ODBError, git.exc.GitError):
has_origin = False
if has_origin: