fix(git): preserve ssh scheme URLs with custom ports

This commit is contained in:
Iisyourdad committed 2026-04-04 14:49:34 -05:00
1 parent ffb5045c6a
commit f877985e56
3 files changed
+40 -6

No files matched your search

+8
View File
@@ -60,3 +60,11 @@ test('convertGitUrlsForSourceAndSshUrlWithCustomPort', function () {
'port' => '766',
]);
});
test('convertGitUrlsForSourceAndSshUrlSchemeWithCustomPort', function () {
$result = convertGitUrl('ssh://git@192.168.56.11:22222/User/Repo.git', 'source', null);
expect($result)->toBe([
'repository' => 'ssh://git@192.168.56.11:22222/User/Repo.git',
'port' => '22222',
]);
});