mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +00:00
fix: update exception handling for git repo initialization
This commit is contained in:
parent
51bf7da8bd
commit
9e196a3bdf
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ def make_new_repo(git_root, io):
|
|||
try:
|
||||
repo = git.Repo.init(git_root)
|
||||
check_gitignore(git_root, io, False)
|
||||
except git.exc.GitCommandError as err: # issue #1233
|
||||
except gitdb.exc.ODBError 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