public getWorkingCopy ( string $directory = self::WORKING_DIR ) : |
||
$directory | string | The directory that the repository is being cloned to, defaults to "test/wc". |
return |
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;
}