protected function cloneRepo($url, $dest, $branch)
    {
        $command = "git clone --branch=$branch $url $dest";
        $this->info("Run \"$command\".");

        File::makeDirectory($dest, 0755, true);

        $output = [];
        exec($command, $output, $returnStatusCode);

        if ($returnStatusCode !== 0) {
            throw RuntimeException::commandExecutionFailed(
                $command, $returnStatusCode
            );
        }

        $this->info("\"$command\" was successfully ran.");
    }
protected function cloneRepo($url, $dest, $branch)
    {
        $command = "git clone --branch=$branch $url $dest";
        $this->info("Run \"$command\".");

        File::makeDirectory($dest, 0755, true);

        $output = [];
        exec($command, $output, $returnStatusCode);

        if ($returnStatusCode !== 0) {
            throw RuntimeException::commandExecutionFailed(
                $command, $returnStatusCode
            );
        }

        $this->info("\"$command\" was successfully ran.");
    }
protected function cloneRepo ( $ url , $ dest , $ branch ) { $ command = "git clone --branch=$branch $url $dest" ; $ this -> info ( "Run \"$command\"." ) ; File :: makeDirectory ( $ dest , 0755 , true ) ; $ output = [ ] ; exec ( $ command , $ output , $ returnStatusCode ) ; if ( $ returnStatusCode !== 0 ) { throw RuntimeException :: commandExecutionFailed ( $ command , $ returnStatusCode ) ; } $ this -> info ( "\"$command\" was successfully ran." ) ; }
Clone repo.

@param $url
@param $dest
@param $branch

@throws RuntimeException
Clone repo .