[FIX] runbot: append a tuple in git gc command list

This commit is contained in:
Christophe Monniez 2024-02-21 07:57:18 +01:00
parent d661fd9fb4
commit f26065c4dc

View File

@ -115,7 +115,7 @@ class RunbotClient():
commands = []
host_name = self.host.name
for repo in self.env['runbot.repo'].search([]):
commands.append(repo.name, (repo._get_git_command(['gc', '--prune=all', '--quiet'])))
commands.append((repo.name, repo._get_git_command(['gc', '--prune=all', '--quiet'])))
self.env.cr.rollback()
# gc commands can be slow, rollbacking to avoid to keep a transaction idle for multiple minutes.
messages = []