mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 06:15:00 +00:00
WIP: Fix typo in coder.py commit prompt.
This commit is contained in:
parent
860c2828ce
commit
303e9742af
1 changed files with 2 additions and 2 deletions
4
coder.py
4
coder.py
|
@ -515,13 +515,13 @@ class Coder:
|
|||
self.console.print(f"[red]Suggested commit message:\n{commit_message}\n")
|
||||
|
||||
res = Prompt.ask(
|
||||
"[red]Commit before the chat proceeds? \[y/n/commit message]", # noqa: W605
|
||||
"[red]Commit before the chat proceeds? \[Y/n/commit message]", # noqa: W605
|
||||
console=self.console,
|
||||
).strip()
|
||||
if res.lower() in ["n", "no"]:
|
||||
self.console.print("[red]Skipped commmit.")
|
||||
return
|
||||
if res.lower() not in ["y", "yes"]:
|
||||
if res.lower() not in ["y", "yes"] and res:
|
||||
commit_message = res
|
||||
|
||||
repo.git.add(*relative_dirty_fnames)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue