Remove old code
This commit is contained in:
parent
db07de8d7b
commit
de268f468b
|
@ -627,10 +627,8 @@ class BuildList < ActiveRecord::Base
|
||||||
@valid_branch_for_publish ||= begin
|
@valid_branch_for_publish ||= begin
|
||||||
save_to_platform.personal? ||
|
save_to_platform.personal? ||
|
||||||
save_to_repository.publish_builds_only_from_branch.blank? ||
|
save_to_repository.publish_builds_only_from_branch.blank? ||
|
||||||
( project_version == save_to_repository.publish_builds_only_from_branch ) ||
|
( project_version == save_to_repository.publish_builds_only_from_branch )
|
||||||
project.repo.git.native(:branch, {}, '--contains', commit_hash).
|
# TODO: Check branch name for commit hash if all else fails
|
||||||
gsub(/\*/, '').split(/\n/).map(&:strip).
|
|
||||||
include?(save_to_repository.publish_builds_only_from_branch)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue