Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #1244 #1250

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/test-cm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion cm/cmind/repos.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading