mlcommons/ck

Support ssh URLs in cm pull repo

Opened this issue · 3 comments

Currently only 'https' is supported in CM pull repo and this causes problems to users using ssh access like reported here

Not sure what you mean. I believe we can pass --url to cm pull repo to specify any protocol? I think this should work:

cm pull repo --url=git+ssh://github.com/mlcommons/cm4abtf --checkout=dev

If we are following the github URLs, we get the SSH URL in this form: git@github.com:mlcommons/ck.git which currently does not work with cm pull repo

I think we should support that and when users use "mlcommons@ck" there should be a parameter like --protocol=ssh or simply --ssh to automatically use SSH.

Also checkout is currently broken (won't pull changes on a retry) similar to --branch issue reported here

arjun@arjun-spr:~/CM/repos/mlcommons@cm4abtf$ cm pull repo --url=git+ssh://github.com/mlcommons/cm4abtf --checkout=dev
=======================================================
Alias:    mlcommons@cm4abtf
URL:      git+ssh://github.com/mlcommons/cm4abtf
Checkout: dev

Local path: /home/arjun/CM/repos/mlcommons@cm4abtf

git pull

There is no tracking information for the current branch.
Please specify which branch you want to rebase against.
See git-pull(1) for details.

    git pull <remote> <branch>

If you wish to set tracking information for this branch you can do so with:

    git branch --set-upstream-to=origin/<branch> dev


git checkout dev

Already on 'dev'

CM alias for this repository: mlcommons@cm4abtf

Ok. I see. Sure, it will be useful to add such support.