function setupRemote(fixtureName, options) {
  const branch = options.branch || 'gh-pages';
  return setupRepo(fixtureName, options).then((dir) =>
    mkdtemp()
      .then((remote) => {
        return new Git(remote).exec('init', '--bare').then(() => remote);
      })
      .then((remote) => {
        const git = new Git(dir);
        const url = 'file://' + remote;
        return git.exec('push', url, branch).then(() => url);
      }),
  );
}
Creates a git repo with the contents of a fixture and pushes to a remote.
@param {string} fixtureName Name of the fixture.
@param {Object} options Repo options.
@return {Promise} A promise.