protected function gitRemoteBranchExist()
    {
        $task = $this->getGitBuildStack()
            ->exec("ls-remote --exit-code --heads {$this->gitRepo()} {$this->gitBranch()}");

        /** @var Result $result */
        $result = $this->runSilentCommand($task);

        return $result->getExitCode() === 0;
    }
protected function gitRemoteBranchExist()
    {
        $task = $this->getGitBuildStack()
            ->exec("ls-remote --exit-code --heads {$this->gitRepo()} {$this->gitBranch()}");

        /** @var Result $result */
        $result = $this->runSilentCommand($task);

        return $result->getExitCode() === 0;
    }
protected function gitRemoteBranchExist ( ) { $ task = $ this -> getGitBuildStack ( ) -> exec ( "ls-remote --exit-code --heads {$this->gitRepo()} {$this->gitBranch()}" ) ; /** @var Result $result */ $ result = $ this -> runSilentCommand ( $ task ) ; return $ result -> getExitCode ( ) === 0 ; }
Deployment git remote branch exist.

@return bool
Deployment git remote branch exist .