clone('https://github.com/kzykhys/Text.git', $this->directory); $git->setRepository($this->directory); $this->assertFileExists($this->directory . '/.git'); $filesystem = new Filesystem(); $filesystem->remove($this->directory); $git->setRepository('.'); $git->clone('https://github.com/kzykhys/Text.git', $this->directory, array('shared' => true)); $this->assertFileExists($this->directory . '/.git'); } }