Method: TYCiCore::Git.git_branch_exist_remote?
- Defined in:
- lib/tuya/ci/core/git.rb
.git_branch_exist_remote?(branch) ⇒ Boolean
158 159 160 161 |
# File 'lib/tuya/ci/core/git.rb', line 158 def self.git_branch_exist_remote?(branch) temp = TYCiCore::EXE.exe('git', %W(branch -a)) temp.scan(/remotes\/origin\/#{branch}/).size > 0 end |