mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 14:25: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")
|
self.console.print(f"[red]Suggested commit message:\n{commit_message}\n")
|
||||||
|
|
||||||
res = Prompt.ask(
|
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,
|
console=self.console,
|
||||||
).strip()
|
).strip()
|
||||||
if res.lower() in ["n", "no"]:
|
if res.lower() in ["n", "no"]:
|
||||||
self.console.print("[red]Skipped commmit.")
|
self.console.print("[red]Skipped commmit.")
|
||||||
return
|
return
|
||||||
if res.lower() not in ["y", "yes"]:
|
if res.lower() not in ["y", "yes"] and res:
|
||||||
commit_message = res
|
commit_message = res
|
||||||
|
|
||||||
repo.git.add(*relative_dirty_fnames)
|
repo.git.add(*relative_dirty_fnames)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue