def obtain(self, quiet=False):
        self.check_destination()

        url, rev = self.get_url_rev()
        self.info('Cloning.')
        self.run(
            ['git', 'clone', '--progress', url, self['path']],
            stdout=subprocess.PIPE,
            stderr=subprocess.PIPE,
            env=os.environ.copy(), cwd=self['path'],
        )

        if self['remotes']:
            for r in self['remotes']:
                self.error('Adding remote %s <%s>' %
                           (r['remote_name'], r['url']))
                self.remote_set(
                    name=r['remote_name'],
                    url=r['url']
                )
Test sending subscription request with subscription identifier.
dataset/ETHPy150Open tony/vcspull/vcspull/repo/git.py/GitRepo.obtain--crossover with--dataset/ETHPy150Open ralphm/wokkel/wokkel/test/test_pubsub.py/PubSubClientTest.test_subscribeReturningSubscriptionIdentifier