Merge branch 'refactor-repo' into chat-history

This commit is contained in:
Paul Gauthier 2023-07-22 09:48:05 -03:00
commit 6e03d2f214

View file

@ -801,7 +801,7 @@ class Coder:
def auto_commit(self): def auto_commit(self):
context = self.get_context_from_history(self.cur_messages) context = self.get_context_from_history(self.cur_messages)
res = self.repo.commit(context=context, prefix="aider: ") res = self.repo.commit(context=context, prefix="aider: ")
if not res: if res:
commit_hash, commit_message = res commit_hash, commit_message = res
self.last_aider_commit_hash = commit_hash self.last_aider_commit_hash = commit_hash