allegroai / clearml-agent

ClearML Agent - ML-Ops made easy. ML-Ops scheduler & orchestration solution
https://clear.ml/docs/
Apache License 2.0
241 stars 92 forks source link

shh to http conversion fails with dev.azure #184

Open mads-oestergaard opened 9 months ago

mads-oestergaard commented 9 months ago

Converting from ssh to http fails for azure projects.

Using user/pass credentials - replacing ssh url 'git@ssh.dev.azure.com:v3/org/team/project' with https url 'https://ssh.dev.azure.com/v3/org/team/project'
fatal: repository 'https://ssh.dev.azure.com/v3/org/team/project' not found

The repository should be https://dev.azure.com/org/team/_git/project

I would like to look at this. Any pointers as to where I start?

jkhenning commented 9 months ago

Hi @mads-oestergaard , this is handled in the agent code, in the def _set_ssh_url(self) function I think - look for it and see if it makes sense

mads-oestergaard commented 9 months ago

@jkhenning just made a PR which should fix it.