fix: git parse url for ssh#1690
Conversation
There was a problem hiding this comment.
Code Review
This pull request refactors the Git remote URL parsing logic in parse_git_url to normalize SSH scp-like and SSH-with-port URLs into HTTPS format, while also stripping the .git suffix. The unit tests have been updated accordingly. Feedback on the changes suggests handling edge cases where SSH URLs lack a path component to avoid generating trailing slashes, and adding corresponding test cases for these scenarios.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
Description