def setUp(self):
        super(ArchiveRepositoryAuthenticatedMethodsTest, self).setUp()
        # Clone test repository localy.
        repo_origin = 'git@bitbucket.org:%s/%s.git' % (self.bb.username, self.bb.repo_slug)
        # TODO : Put the temp folder on the right place for windows.
        repo_folder = os.path.join(
            '/tmp',
            'bitbucket-' + ''.join(random.choice(string.digits + string.letters) for x in range(10)))
        sh.mkdir(repo_folder)
        sh.cd(repo_folder)
        self.pwd = sh.pwd().strip()
        sh.git.init()
        sh.git.remote('add', 'origin', repo_origin)
        # Add commit with empty file.
        sh.touch('file')
        sh.git.add('.')
        sh.git.commit('-m', '"Add empty file."')
        sh.git.push('origin', 'master')
Adds additional sources as defined in LINUX_PACKAGE_REPOSITORIES.
dataset/ETHPy150Open Sheeprider/BitBucket-api/bitbucket/tests/private/repository.py/ArchiveRepositoryAuthenticatedMethodsTest.setUp--crossover with--dataset/ETHPy150Open bretth/woven/woven/linux.py/add_repositories