Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Add support for azure.com and other SSH URL formats #407

Merged
merged 1 commit into from
May 23, 2018

Conversation

jeschu1
Copy link
Member

@jeschu1 jeschu1 commented May 23, 2018

No description provided.

Copy link
Member

@mjcheetham mjcheetham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :shipit:

@jeschu1 jeschu1 merged commit 0af7320 into microsoft:master May 23, 2018
@jeschu1 jeschu1 deleted the support_more_formats branch May 23, 2018 19:09
//
//NOTE: the detection of a TFS TFVC repository is basically a "catch all". Any url could match
//it and we'd think it's a TFVC repo. For that to be true, this class now assumes that it is
//always detecting either a Team Services or TFS repository. It no longer tries to determine
//that a url is NOT either a TFS or Team Services repository. So it is up to the caller to only
//instantiate this class if we know we should have either a TFS or Team Services repository.
export class RepoUtils {
private static sshV3 = new RegExp("git@(?:vs-)?ssh\.(.+):v3\/(.+)\/(.+)\/(.+)");
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VSTS now introduced a new version where the git@ is now replaced with the <VS account name>@.

image

Which means, the experience for SSH-cloned repos is broken again.

One thing to note, the old URIs, starting with git@ still work -- however, since the VSTS experience exposes the new format, then that's what people are going to use.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank You @johnib ! If you're interested in fixing this please submit a PR and we'll happily review.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants