mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-04 19:55:00 +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
|
@ -6,7 +6,6 @@ import threading
|
|||
from pathlib import Path
|
||||
|
||||
import git
|
||||
import gitdb
|
||||
from dotenv import load_dotenv
|
||||
from prompt_toolkit.enums import EditingMode
|
||||
|
||||
|
@ -57,7 +56,7 @@ def make_new_repo(git_root, io):
|
|||
try:
|
||||
repo = git.Repo.init(git_root)
|
||||
check_gitignore(git_root, io, False)
|
||||
except (gitdb.exc.ODBError, git.exc.GitCommandNotFound) as err: # issue #1233
|
||||
except (git.exc.ODBError, git.exc.GitCommandNotFound) as err: # issue #1233
|
||||
io.tool_error(f"Unable to create git repo in {git_root}")
|
||||
io.tool_error(str(err))
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue