def __init__(self, contributor_count):
        super(CentralisedWithWorkers, self).__init__()
        if contributor_count < 1:
            raise(
                Exception("contributor_count must be 1 or more, got {}".format(
                    contributor_count)))

        self._central_repo = phlsys_git.Repo(tempfile.mkdtemp())
        self._central_repo("init", "--bare")

        self._workers = []
        for i in xrange(contributor_count):
            self._workers.append(
                Worker(phlsys_git.Repo(tempfile.mkdtemp())))
            self.workers[-1].repo("init")
            self.workers[-1].repo(
                "remote", "add", "origin", self._central_repo.working_dir)
            self.workers[-1].repo("fetch")

            if i == 0:
                self.workers[0].commit_new_file('initial commit', 'README')
                phlgit_push.push(self.workers[0].repo, 'master', 'origin')
            else:
                self.workers[i].repo('fetch')
                self.workers[i].repo('checkout', 'master')
dataset/ETHPy150Open bloomberg/phabricator-tools/py/phl/phlgitu_fixture.py/CentralisedWithWorkers.__init__/original