mirror of
https://github.com/odoo/runbot.git
synced 2025-03-27 13:25:47 +07:00
[FIX] runbot: fix gc warning
This commit is contained in:
parent
d027d1c7de
commit
3f042c44a8
@ -377,7 +377,7 @@ class Runbot(models.AbstractModel):
|
|||||||
repo._git(['gc', '--prune=all', '--quiet'])
|
repo._git(['gc', '--prune=all', '--quiet'])
|
||||||
except CalledProcessError as e:
|
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 on host {host} with exit status {e.returncode} and message "{e.output[:30]} ..."'
|
||||||
self.warning.create({'message': message})
|
self.warning(message)
|
||||||
|
|
||||||
def warning(self, message, *args):
|
def warning(self, message, *args):
|
||||||
if args:
|
if args:
|
||||||
|
Loading…
Reference in New Issue
Block a user