public function remoteBranchExists($remote, $branchName, $dir = null, $mustRun = false)
    {
        $args = ['ls-remote', $remote, $branchName];
        $result = $this->execute($args, $dir, $mustRun);

        return is_string($result) && strlen(trim($result));
    }
public function remoteBranchExists($remote, $branchName, $dir = null, $mustRun = false)
    {
        $args = ['ls-remote', $remote, $branchName];
        $result = $this->execute($args, $dir, $mustRun);

        return is_string($result) && strlen(trim($result));
    }
public function remoteBranchExists ( $ remote , $ branchName , $ dir = null , $ mustRun = false ) { $ args = [ 'ls-remote' , $ remote , $ branchName ] ; $ result = $ this -> execute ( $ args , $ dir , $ mustRun ) ; return is_string ( $ result ) && strlen ( trim ( $ result ) ) ; }
Check whether a branch exists on a remote.

@param string $remote
@param string $branchName
@param null   $dir
@param bool   $mustRun

@return bool
Check whether a branch exists on a remote .