[FIX] runbot: typo, branch is a dict from search_read()

This commit is contained in:
Olivier Dony 2015-09-11 12:24:21 +02:00
parent d40460d9f1
commit 42ae78f647

View File

@ -670,7 +670,7 @@ class runbot_build(osv.osv):
""", [repo.id, target_id])
for common_name, in cr.fetchall():
try:
commit = repo.git(['merge-base', branch.name, common_name]).strip()
commit = repo.git(['merge-base', branch['name'], common_name]).strip()
cmd = ['log', '-1', '--format=%cd', '--date=iso', commit]
common_refs[common_name] = repo.git(cmd).strip()
except subprocess.CalledProcessError: