protected function createRemote()
{
// Create a clone of the working copy that will serve as a remote.
$git = $this->wrapper->clone('file://' . realpath(self::REPO_DIR), self::REMOTE_REPO_DIR);
$git->config('user.email', self::CONFIG_EMAIL);
$git->config('user.name', self::CONFIG_NAME);
// Make a change to the remote repo.
file_put_contents(self::REMOTE_REPO_DIR . '/remote.file', "remote code\n");
$git->add('*')->commit('Remote change.');
// Create a branch.
$branch = 'remote-branch';
file_put_contents(self::REMOTE_REPO_DIR . '/remote-branch.txt', "{$branch}\n");
$git->checkoutNewBranch($branch)->add('*')->commit('Commit remote testing branch.');
// Create a tag.
$git->tag('remote-tag');
}