public function getWorkingCopy($directory = self::WORKING_DIR) { $git = $this->wrapper->workingCopy($directory); $git->cloneRepository('file://' . realpath(self::REPO_DIR))->config('user.email', self::CONFIG_EMAIL)->config('user.name', self::CONFIG_NAME)->clearOutput(); return $git; }