

def set_remote(self, chdir=False):
    remote = (WALIKI_DATA_DIR + '_remote')
    git.clone(WALIKI_DATA_DIR, remote)
    os.chdir(remote)
    git.config('user.email', 'somebody@tolove.com')
    git.config('user.name', 'I am me, yo')
    os.chdir(WALIKI_DATA_DIR)
    git.remote('add', 'origin', remote)
    if chdir:
        os.chdir(remote)
    return remote

dataset/ETHPy150Open mgaitan/waliki/tests/test_git_webhook.py TestGitWebhook.set_remote/original