diff --git a/aider/args.py b/aider/args.py index 4bf0bc37f..340aa1f00 100644 --- a/aider/args.py +++ b/aider/args.py @@ -475,7 +475,7 @@ def get_parser(default_config_files, git_root): "--git-commit-no-sign", action=argparse.BooleanOptionalAction, default=False, - help="Disable git signing with --no-gpg-sign (default: False)", + help="Disable git commit signing with --no-gpg-sign (default: False)", ) group.add_argument( "--commit", diff --git a/aider/repo.py b/aider/repo.py index 01652b15f..85f33f677 100644 --- a/aider/repo.py +++ b/aider/repo.py @@ -73,6 +73,7 @@ class GitRepo: commit_prompt=None, subtree_only=False, git_commit_verify=True, + git_commit_no_sign=False, attribute_co_authored_by=False, # Added parameter ): self.io = io @@ -89,6 +90,7 @@ class GitRepo: self.commit_prompt = commit_prompt self.subtree_only = subtree_only self.git_commit_verify = git_commit_verify + self.git_commit_no_sign = git_commit_no_sign self.ignore_file_cache = {} if git_dname: @@ -277,6 +279,8 @@ class GitRepo: cmd = ["-m", full_commit_message] if not self.git_commit_verify: cmd.append("--no-verify") + if self.git_commit_no_sign: + cmd.append("--no-gpg-sign") if fnames: fnames = [str(self.abs_root_path(fn)) for fn in fnames] for fname in fnames: