public function init($path = null)
    {
        $this->clearAll();
        $this->addCommandName(sprintf('%s %s', self::SUBMODULE_COMMAND, self::SUBMODULE_INIT_COMMAND));
        if (null !== $path) {
            $this->addPath($path);
        }

        return $this->getCommand();
    }
public function init($path = null)
    {
        $this->clearAll();
        $this->addCommandName(sprintf('%s %s', self::SUBMODULE_COMMAND, self::SUBMODULE_INIT_COMMAND));
        if (null !== $path) {
            $this->addPath($path);
        }

        return $this->getCommand();
    }
public function init ( $ path = null ) { $ this -> clearAll ( ) ; $ this -> addCommandName ( sprintf ( '%s %s' , self :: SUBMODULE_COMMAND , self :: SUBMODULE_INIT_COMMAND ) ) ; if ( null !== $ path ) { $ this -> addPath ( $ path ) ; } return $ this -> getCommand ( ) ; }
initialize a repository's submodules

@param  string $path init only submodules at the specified path

@return string
initialize a repository s submodules