Skip to content

Commit add6da8

Browse files
Fix Copy GitHub Permalink with custom SSH (#6669)
1 parent b120817 commit add6da8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/issues/util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ export function getUpstreamOrigin(upstream: Remote, resultHost: string = 'github
584584
fetchUrl = fetchUrl.substr('ssh://'.length);
585585
}
586586
// upstream's origin by ssh
587-
if (fetchUrl.startsWith('git@') && !fetchUrl.startsWith('[email protected]')) {
587+
if ((fetchUrl.startsWith('git@') || fetchUrl.includes('@git')) && !fetchUrl.startsWith('[email protected]')) {
588588
const host = fetchUrl.split('@')[1]?.split(':')[0];
589589
if (host.startsWith(enterpriseUri.authority) || !host.includes('github.com')) {
590590
resultHost = enterpriseUri.authority;

0 commit comments

Comments
 (0)