diff --git a/aider/coder.py b/aider/coder.py index 2f69b7a6c..588cc777f 100755 --- a/aider/coder.py +++ b/aider/coder.py @@ -33,7 +33,7 @@ class Coder: repo = None last_aider_commit_hash = None - def __init__(self, main_model, fnames, pretty, history_file, show_diffs): + def __init__(self, main_model, fnames, pretty, history_file, show_diffs, auto_commits): self.history_file = history_file if pretty: diff --git a/aider/main.py b/aider/main.py index 0a2a5d6c5..821394f5e 100644 --- a/aider/main.py +++ b/aider/main.py @@ -65,7 +65,7 @@ def main(): fnames = args.files pretty = args.pretty - coder = Coder(args.model, fnames, pretty, args.history_file, args.show_diffs) + coder = Coder(args.model, fnames, pretty, args.history_file, args.show_diffs, args.auto_commits) coder.commit(ask=True, prefix="wip: ", which="repo_files") if args.apply: