Merge pull request #614 from misteral/close_#613

Fix issue with aider --commit
This commit is contained in:
paul-gauthier 2024-05-24 07:15:37 -07:00 committed by GitHub
commit 27aa481b15
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -139,7 +139,7 @@ class Commands:
# any method called cmd_xxx becomes a command automatically.
# each one must take an args param.
def cmd_commit(self, args):
def cmd_commit(self, args=None):
"Commit edits to the repo made outside the chat (commit message optional)"
if not self.coder.repo:
@ -150,7 +150,7 @@ class Commands:
self.io.tool_error("No more changes to commit.")
return
commit_message = args.strip()
commit_message = args.strip() if args else None
self.coder.repo.commit(message=commit_message)
def cmd_lint(self, args="", fnames=None):