From 42ae78f6476c7c12144caf33f656fd22b72299dc Mon Sep 17 00:00:00 2001 From: Olivier Dony Date: Fri, 11 Sep 2015 12:24:21 +0200 Subject: [PATCH] [FIX] runbot: typo, branch is a dict from search_read() --- runbot/runbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runbot/runbot.py b/runbot/runbot.py index 81835744..f36e7aa0 100644 --- a/runbot/runbot.py +++ b/runbot/runbot.py @@ -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: