protected function cloneByHttp(Builder $builder, $cloneTo)
    {
        $cmd = 'git clone --recursive ';

        $depth = $builder->getConfig('clone_depth');

        if (!is_null($depth)) {
            $cmd .= ' --depth ' . intval($depth) . ' ';
        }

        $cmd .= ' -b "%s" "%s" "%s"';
        $success = $builder->executeCommand($cmd, $this->getBranch(), $this->getCloneUrl(), $cloneTo);

        if ($success) {
            $success = $this->postCloneSetup($builder, $cloneTo);
        }

        return $success;
    }
protected function cloneByHttp(Builder $builder, $cloneTo)
    {
        $cmd = 'git clone --recursive ';

        $depth = $builder->getConfig('clone_depth');

        if (!is_null($depth)) {
            $cmd .= ' --depth ' . intval($depth) . ' ';
        }

        $cmd .= ' -b "%s" "%s" "%s"';
        $success = $builder->executeCommand($cmd, $this->getBranch(), $this->getCloneUrl(), $cloneTo);

        if ($success) {
            $success = $this->postCloneSetup($builder, $cloneTo);
        }

        return $success;
    }
protected function cloneByHttp ( Builder $ builder , $ cloneTo ) { $ cmd = 'git clone --recursive ' ; $ depth = $ builder -> getConfig ( 'clone_depth' ) ; if ( ! is_null ( $ depth ) ) { $ cmd .= ' --depth ' . intval ( $ depth ) . ' ' ; } $ cmd .= ' -b "%s" "%s" "%s"' ; $ success = $ builder -> executeCommand ( $ cmd , $ this -> getBranch ( ) , $ this -> getCloneUrl ( ) , $ cloneTo ) ; if ( $ success ) { $ success = $ this -> postCloneSetup ( $ builder , $ cloneTo ) ; } return $ success ; }
Use an HTTP-based git clone.
Use an HTTP - based git clone .