mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-04 19:55:00 +00:00
Merge pull request #614 from misteral/close_#613
Fix issue with aider --commit
This commit is contained in:
commit
27aa481b15
1 changed files with 2 additions and 2 deletions
|
@ -139,7 +139,7 @@ class Commands:
|
||||||
# any method called cmd_xxx becomes a command automatically.
|
# any method called cmd_xxx becomes a command automatically.
|
||||||
# each one must take an args param.
|
# 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)"
|
"Commit edits to the repo made outside the chat (commit message optional)"
|
||||||
|
|
||||||
if not self.coder.repo:
|
if not self.coder.repo:
|
||||||
|
@ -150,7 +150,7 @@ class Commands:
|
||||||
self.io.tool_error("No more changes to commit.")
|
self.io.tool_error("No more changes to commit.")
|
||||||
return
|
return
|
||||||
|
|
||||||
commit_message = args.strip()
|
commit_message = args.strip() if args else None
|
||||||
self.coder.repo.commit(message=commit_message)
|
self.coder.repo.commit(message=commit_message)
|
||||||
|
|
||||||
def cmd_lint(self, args="", fnames=None):
|
def cmd_lint(self, args="", fnames=None):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue