def test_git_require_branch():

    from fabtools.require.git import working_copy

    try:
        working_copy(REMOTE_URL, path='wc', branch='test_git')

        assert is_dir('wc')
        assert is_dir('wc/.git')

        with cd('wc'):
            remotes = run('git remote -v')
            assert remotes == \
                'origin\thttps://github.com/disko/fabtools.git (fetch)\r\n' \
                'origin\thttps://github.com/disko/fabtools.git (push)'

            assert _current_branch() == 'test_git'


    finally:
        run('rm -rf wc')
:param code:
dataset/ETHPy150Open ronnix/fabtools/fabtools/tests/functional_tests/test_git.py/test_git_require_branch--crossover with--dataset/ETHPy150Open ODM2/ODMToolsPython/odmtools/odmservices/series_service.py/SeriesService.create_variable