From de268f468ba6a37e08edb293f271dbfd74237100 Mon Sep 17 00:00:00 2001 From: Wedge Date: Sun, 20 Mar 2016 15:50:58 +0300 Subject: [PATCH] Remove old code --- app/models/build_list.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/models/build_list.rb b/app/models/build_list.rb index 9b55ffa23..bc872c7c1 100644 --- a/app/models/build_list.rb +++ b/app/models/build_list.rb @@ -627,10 +627,8 @@ class BuildList < ActiveRecord::Base @valid_branch_for_publish ||= begin save_to_platform.personal? || save_to_repository.publish_builds_only_from_branch.blank? || - ( project_version == save_to_repository.publish_builds_only_from_branch ) || - project.repo.git.native(:branch, {}, '--contains', commit_hash). - gsub(/\*/, '').split(/\n/).map(&:strip). - include?(save_to_repository.publish_builds_only_from_branch) + ( project_version == save_to_repository.publish_builds_only_from_branch ) + # TODO: Check branch name for commit hash if all else fails end end