public function addSubmodule(string $gitUrl, $path = null)
    {
        $this->caller->execute(SubmoduleCommand::getInstance($this)->add($gitUrl, $path));

        return $this;
    }
public function addSubmodule(string $gitUrl, $path = null)
    {
        $this->caller->execute(SubmoduleCommand::getInstance($this)->add($gitUrl, $path));

        return $this;
    }
public function addSubmodule ( string $ gitUrl , $ path = null ) { $ this -> caller -> execute ( SubmoduleCommand :: getInstance ( $ this ) -> add ( $ gitUrl , $ path ) ) ; return $ this ; }
add a git submodule to the repository

@param string $gitUrl git url of the submodule
@param string $path   path to register the submodule to

@throws \RuntimeException
@throws \Symfony\Component\Process\Exception\LogicException
@throws InvalidArgumentException
@throws \Symfony\Component\Process\Exception\RuntimeException
@return Repository
add a git submodule to the repository