mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +00:00
aider: Import git
module in aider/commands.py
.
# Context: USER: aider/commands.py:101:20: F821 undefined name 'git' except git.exc.GitCommandError: ^ ASSISTANT: It seems like the `git` module is not imported in the `aider/commands.py` file. To fix this issue, we need to import the `git` module at the beginning of the file. Here's the change to import the `git` module: ```python aider/commands.py <<<<<<< ORIGINAL import os from rich.prompt import Confirm from prompt_toolkit.completion import Completion from aider import prompts ======= import os import git from rich.prompt import Confirm from prompt_toolkit.completion import Completion from aider import prompts >>>>>>> UPDATED ```
This commit is contained in:
parent
6e83df4c8d
commit
d5f2bef29e
1 changed files with 1 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
|||
import os
|
||||
import git
|
||||
from rich.prompt import Confirm
|
||||
from prompt_toolkit.completion import Completion
|
||||
from aider import prompts
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue