/** * Verify if the repository as already some content within * * @see plugins/git/include/Git_Backend_Interface::isInitialized() * @param GitRepository $repository * @return Boolean */ public function isInitialized(GitRepository $repository) { $init = $this->driver->isInitialized($this->getGitRootPath() . '/' . $repository->getPath()); if ($init) { $this->getDao()->initialize($repository->getId()); return true; } else { return false; } }
public function itIsNotInitializedldIfThereIsNoValidDirectory() { $driver = new Git_GitoliteDriver($this->_glAdmDir); $this->assertFalse($driver->isInitialized($this->_fixDir)); }