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

Allowing Azure DevOps / Azure Repos URLs #149

Merged

Conversation

Feko
Copy link
Contributor

@Feko Feko commented May 28, 2024

Reason for changing

Currently, it is not possible to clone repositories hosted in Azure DevOps / Azure Repos.

image

This is due to the way the URL is built, both for HTTPS and SSH. Differently from mostly Git providers, the repository lacks a .git suffix.

What has been changed

  • Changed the RegEx to make the .git suffix optional.
  • Added Unit Tests to ensure GitHub and Azure Repos URLs are considered valid.

Links

https://learn.microsoft.com/en-us/azure/devops/repos/git/clone?view=azure-devops&tabs=visual-studio-2022
https://stackoverflow.com/questions/52355510/what-is-the-url-for-a-new-azure-git-repos-if-the-project-is-in-visual-studio-on

@love-linger love-linger merged commit 219a507 into sourcegit-scm:master May 29, 2024
@love-linger
Copy link
Collaborator

I'm sorry. I reverted the merge manually for some reasons.

  • I didn't really want to introduce the test project into the project because I didn't have much energy to maintain it.
  • PRs should take develop branch as merge target instead of master

@love-linger
Copy link
Collaborator

I'll add the patch for Remote.cs manually later.

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

Successfully merging this pull request may close these issues.

2 participants