mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 00:05:01 +00:00
use git.exc not gitdb.exc
This commit is contained in:
parent
01964ca294
commit
c32a991b2c
2 changed files with 2 additions and 4 deletions
|
@ -3,7 +3,6 @@ import time
|
|||
from pathlib import Path, PurePosixPath
|
||||
|
||||
import git
|
||||
import gitdb
|
||||
import pathspec
|
||||
|
||||
from aider import prompts, utils
|
||||
|
@ -376,7 +375,7 @@ class GitRepo:
|
|||
def get_head_commit(self):
|
||||
try:
|
||||
return self.repo.head.commit
|
||||
except (ValueError, gitdb.exc.ODBError):
|
||||
except (ValueError, git.exc.ODBError):
|
||||
return None
|
||||
|
||||
def get_head_commit_sha(self, short=False):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue