Skip to content

Commit 3240f51

Browse files
jankeromnesroboquat
authored andcommitted
[server] Support 'git@{host}:{user}/{repo}.git' format in context URLs
1 parent ed8a3dc commit 3240f51

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

components/server/src/workspace/context-parser.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ export abstract class AbstractContextParser implements IContextParser {
3232
if (url.startsWith(`${this.host}/`)) {
3333
url = `https://${url}`;
3434
}
35+
if (url.startsWith(`git@${this.host}:`)) {
36+
return `https://${this.host}/` + url.slice(`git@${this.host}:`.length);
37+
}
3538
if (url.startsWith(`https://${this.host}/`)) {
3639
return url;
3740
}

0 commit comments

Comments
 (0)