clear log on job:created, too

This commit is contained in:
Sven Fuchs 2013-01-17 20:24:51 +01:00
parent 61c9bf3457
commit 050c9fd211

View File

@ -38,7 +38,8 @@ $.extend Travis.Pusher.prototype,
return if event.substr(0, 6) == 'pusher'
data = @normalize(event, data) if data.id
if event == 'job:requeued'
# TODO remove job:requeued, once sf-restart-event has been merged
if event == 'job:created' || event == 'job:requeued'
job = Travis.Job.find(data.job.id)
job.clearLog() if job