class TYCiCore::TYGit

Public Class Methods

checkout_custom_branch(target_path, tag, new_branch, temp) click to toggle source
# File lib/tuya/ci/core/git/git_tuya_ci.rb, line 3
def self.checkout_custom_branch(target_path, tag, new_branch, temp)

        puts "Checkout custom branch: #{new_branch} base on: #{tag} path: #{target_path} workspace: #{temp}"

        FileUtils.cd TYUtil::TYFile.folder_copy(target_path, temp)

        TYCiCore::Git.git_tag_checkout tag

        TYCiCore::Git.git_checkout_branch new_branch
end