You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The parsing of a repository URL fails when it uses the SSH protocol and contains URL-encoded spaces (aka %20).
The problem can be reproduced with git-url-parse version 13.1.0 (aka the latest version at the moment of writing this issue).
constgitUrlParse=require('git-url-parse');functiontest(description,url){try{gitUrlParse(url);console.log(`SUCCESS: ${description}`);}catch(error){console.log(`FAILURE: ${description}`);}}test('SSH URL with URL-encoded spaces','git@ssh.dev.azure.com:v3/ORG/My%20project/repo');test('SSH URL with non URL-encoded spaces','git@ssh.dev.azure.com:v3/ORG/My project/repo');test('SSH URL without spaces','git@ssh.dev.azure.com:v3/ORG/My-project/repo');test('HTTPS URL with URL-encoded spaces','https://ORG@dev.azure.com/ORG/My%20project/_git/repo');test('HTTPS URL with non URL-encoded spaces','https://ORG@dev.azure.com/ORG/My project/_git/repo');test('HTTPS URL without spaces','https://ORG@dev.azure.com/ORG/My-project/_git/repo');// Results:// FAILURE: SSH URL with URL-encoded spaces// FAILURE: SSH URL with non URL-encoded spaces// SUCCESS: SSH URL without spaces// SUCCESS: HTTPS URL with URL-encoded spaces// SUCCESS: HTTPS URL with non URL-encoded spaces// SUCCESS: HTTPS URL without spaces
The text was updated successfully, but these errors were encountered:
Fixing this bug requires updating git-up to use the latest version of parse-url (9.0.0+) where the actual root cause of this problem has been fixed (see IonicaBizau/parse-url#75).
The parsing of a repository URL fails when it uses the SSH protocol and contains URL-encoded spaces (aka
%20
).The problem can be reproduced with
git-url-parse
version13.1.0
(aka the latest version at the moment of writing this issue).The text was updated successfully, but these errors were encountered: