pass in commit models to gitrepo

This commit is contained in:
Paul Gauthier 2024-04-17 15:41:30 -07:00
parent 3662a4680b
commit f1a31d3944
2 changed files with 10 additions and 6 deletions

View file

@ -150,7 +150,11 @@ class Coder:
if use_git:
try:
self.repo = GitRepo(
self.io, fnames, git_dname, aider_ignore_file, client=self.client
self.io,
fnames,
git_dname,
aider_ignore_file,
models=main_model.commit_message_models(),
)
self.root = self.repo.root
except FileNotFoundError: