Browse Source

Changes Open Branch on Remote to better url

main
Eric Amodio 3 years ago
parent
commit
e657def760
3 changed files with 3 additions and 3 deletions
  1. +1
    -1
      src/git/remotes/bitbucket.ts
  2. +1
    -1
      src/git/remotes/github.ts
  3. +1
    -1
      src/git/remotes/gitlab.ts

+ 1
- 1
src/git/remotes/bitbucket.ts View File

@ -112,7 +112,7 @@ export class BitbucketRemote extends RemoteProvider {
} }
protected getUrlForBranch(branch: string): string { protected getUrlForBranch(branch: string): string {
return `${this.baseUrl}/commits/branch/${branch}`;
return `${this.baseUrl}/branch/${branch}`;
} }
protected getUrlForCommit(sha: string): string { protected getUrlForCommit(sha: string): string {

+ 1
- 1
src/git/remotes/github.ts View File

@ -132,7 +132,7 @@ export class GitHubRemote extends RichRemoteProvider {
} }
protected getUrlForBranch(branch: string): string { protected getUrlForBranch(branch: string): string {
return `${this.baseUrl}/commits/${branch}`;
return `${this.baseUrl}/tree/${branch}`;
} }
protected getUrlForCommit(sha: string): string { protected getUrlForCommit(sha: string): string {

+ 1
- 1
src/git/remotes/gitlab.ts View File

@ -107,7 +107,7 @@ export class GitLabRemote extends RemoteProvider {
} }
protected getUrlForBranch(branch: string): string { protected getUrlForBranch(branch: string): string {
return `${this.baseUrl}/commits/${branch}`;
return `${this.baseUrl}/tree/${branch}`;
} }
protected getUrlForCommit(sha: string): string { protected getUrlForCommit(sha: string): string {

Loading…
Cancel
Save