diff --git a/.github/workflows/test-cm.yml b/.github/workflows/test-cm.yml index 30b2162e2..b65980e63 100644 --- a/.github/workflows/test-cm.yml +++ b/.github/workflows/test-cm.yml @@ -35,7 +35,7 @@ jobs: python setup.py install python -m cmind # cm pull repo --url=${{ github.event.pull_request.head.repo.html_url }} --checkout=${{ github.event.pull_request.head.ref }} - cm pull repo --url=${{ github.event.pull_request.head.repo.html_url }} + cm pull repo mlcommons@cm4mlops --branch=mlperf-inference - name: Lint with flake8 run: | # stop the build if there are Python syntax errors or undefined names @@ -64,7 +64,7 @@ jobs: python -m pip install --upgrade pip python -m pip install cmind # cm pull repo --url=${{ github.event.pull_request.head.repo.html_url }} --checkout=${{ github.event.pull_request.head.ref }} - cm pull repo --url=${{ github.event.pull_request.head.repo.html_url }} + cm pull repo mlcommons@cm4mlops --branch=mlperf-inference - name: Test CM run: | python tests/test_cm.py diff --git a/cm/cmind/repos.py b/cm/cmind/repos.py index 0926bb197..8899607de 100644 --- a/cm/cmind/repos.py +++ b/cm/cmind/repos.py @@ -457,7 +457,7 @@ def pull(self, alias, url = '', branch = '', checkout = '', console = False, des extra_flag = ' ' if checkout_only else ' -b ' if branch != '': - cmd += extra_flag + branch + cmd = 'git fetch && git switch ' + branch if checkout!='': cmd += ' ' + checkout