mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 23:45:44 +07:00
[IMP] runbot: improve git gc warning
This commit is contained in:
parent
3f042c44a8
commit
9fb48f48cf
@ -376,7 +376,7 @@ class Runbot(models.AbstractModel):
|
||||
try:
|
||||
repo._git(['gc', '--prune=all', '--quiet'])
|
||||
except CalledProcessError as e:
|
||||
message = f'git gc failed on host {host} with exit status {e.returncode} and message "{e.output[:30]} ..."'
|
||||
message = f'git gc failed for {repo.name} on {host.name} with exit status {e.returncode} and message "{e.output[:60]} ..."'
|
||||
self.warning(message)
|
||||
|
||||
def warning(self, message, *args):
|
||||
|
Loading…
Reference in New Issue
Block a user