mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 23:45:44 +07:00
[FIX] runbot: update git before logging last commit
This commit is contained in:
parent
4944d6a503
commit
10b456deda
@ -547,13 +547,13 @@ class runbot_build(models.Model):
|
||||
'Building environment',
|
||||
'%s match branch %s of %s' % (server_match, closest_name, repo.name)
|
||||
)
|
||||
repo._update_git(force=True)
|
||||
latest_commit = repo._git(['rev-parse', closest_name]).strip()
|
||||
commit_oneline = repo._git(['show', '--pretty="%H -- %s"', '-s', latest_commit]).strip()
|
||||
build._log(
|
||||
'Building environment',
|
||||
'Server built based on commit %s from %s' % (commit_oneline, closest_name)
|
||||
)
|
||||
repo._update_git(force=True)
|
||||
repo._git_export(closest_name, build._path())
|
||||
|
||||
# Finally mark all addons to move to openerp/addons
|
||||
|
Loading…
Reference in New Issue
Block a user