Explorar el Código

support for non https remotes

main
Helmut Januschka hace 7 años
cometido por Eric Amodio
padre
commit
dcfc6626d4
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. +3
    -2
      src/git/remotes/provider.ts

+ 3
- 2
src/git/remotes/provider.ts Ver fichero

@ -40,6 +40,7 @@ export abstract class RemoteProvider {
public readonly domain: string,
public readonly path: string,
name?: string,
public readonly protocol: string = 'https'
public readonly custom: boolean = false
) {
this._name = name;
@ -48,7 +49,7 @@ export abstract class RemoteProvider {
abstract get name(): string;
protected get baseUrl() {
return `https://${this.domain}/${this.path}`;
return `${this.protocol}://${this.domain}/${this.path}`;
}
protected formatName(name: string) {
@ -105,4 +106,4 @@ export abstract class RemoteProvider {
openFile(fileName: string, branch?: string, sha?: string, range?: Range) {
return this.openUrl(this.getUrlForFile(fileName, branch, sha, range));
}
}
}

Cargando…
Cancelar
Guardar