mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 10:14:59 +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:
|
try:
|
||||||
repo = git.Repo.init(git_root)
|
repo = git.Repo.init(git_root)
|
||||||
check_gitignore(git_root, io, False)
|
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(f"Unable to create git repo in {git_root}")
|
||||||
io.tool_error(str(err))
|
io.tool_error(str(err))
|
||||||
return
|
return
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue