fix: enhance git remote validation by trying SSH URLs for generic hosts#584
fix: enhance git remote validation by trying SSH URLs for generic hosts#584zzoubian wants to merge 5 commits intomicrosoft:mainfrom
Conversation
@microsoft-github-policy-service agree |
Review FeedbackThanks @zzoubian for tackling this! The SSH-first approach for generic hosts is sound. A few things need addressing before merge: 1. CLA not signed (blocker)Please reply to the CLA bot comment with 2. Missing
|
|
Ok added unit tests and replied to CLA with |
sergio-sisternes-epam
left a comment
There was a problem hiding this comment.
Clean fix that aligns validation with the existing download behavior in _clone_with_fallback(). SSH-first for generic hosts, HTTPS fallback — well tested with 5 cases covering the happy path, fallback, and negative scenarios. All prior review feedback addressed.
CodeQL note: The CodeQL failure is a false positive on test URL strings — not a code issue.
Description
Fixes apm install fails the pre-install validation step when targeting a self-hosted Git server
Fixes #583
Type of change
Testing