shell查询分支是否存在
shell git 查询分支是否存在
fun hasBranch(branch: String):Boolean {
return !shell("git ls-remote --heads origin $branch",path).isNullOrEmpty()
}
fun hasBranch(branch: String):Boolean {
return !shell("git ls-remote --heads origin $branch",path).isNullOrEmpty()
}