From 5081bb157f47ffdb4de0b64b7dba98337da183bc Mon Sep 17 00:00:00 2001 From: Mathias Meyer Date: Wed, 18 Jun 2014 11:16:02 +0200 Subject: [PATCH] Skip including a build if it doesn't exist. This catches branch specifications where no build is available. --- lib/travis/api/app/responders/xml.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/travis/api/app/responders/xml.rb b/lib/travis/api/app/responders/xml.rb index 57f37ad5..bc80f254 100644 --- a/lib/travis/api/app/responders/xml.rb +++ b/lib/travis/api/app/responders/xml.rb @@ -7,6 +7,7 @@ module Travis::Api::App::Responders TEMPLATE_ERB = ERB.new <<-EOF <% @resource.each do |r| %> + <% next if r.last_completed_build(branch).nil? -%>