[FIX] runbot: remove useless commit()

This commit() is the root cause of the famous false-positive error
`_check_module_names invalid module names, ignored: False`.

The first step (pull code) is a long one. if a push-hook request
happen during this step, the current transaction wont be able to be
commited (the list of module to test is written on the build). Due to
this early commit(), the build is left in an intermediate state with
the module list unpopulated (=False).
This commit is contained in:
Christophe Simonis 2016-07-26 18:28:24 +02:00
parent 40e502ecd5
commit 97001fbf72

View File

@ -1073,7 +1073,6 @@ class runbot_build(osv.osv):
'job_end': False,
}
build.write(values)
cr.commit()
else:
# check if current job is finished
lock_path = build.path('logs', '%s.lock' % build.job)