From 303e9742af9796e0034f5057f036ed8363b3d818 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Mon, 8 May 2023 23:48:36 -0700 Subject: [PATCH] WIP: Fix typo in coder.py commit prompt. --- coder.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/coder.py b/coder.py index 3dda8e2fa..42f9f23d5 100755 --- a/coder.py +++ b/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)