From e657def760a118197a9e65a11c8899ddf08e01c2 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Thu, 28 Jan 2021 00:11:36 -0500 Subject: [PATCH] Changes Open Branch on Remote to better url --- src/git/remotes/bitbucket.ts | 2 +- src/git/remotes/github.ts | 2 +- src/git/remotes/gitlab.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/git/remotes/bitbucket.ts b/src/git/remotes/bitbucket.ts index 8164772..1d3346c 100644 --- a/src/git/remotes/bitbucket.ts +++ b/src/git/remotes/bitbucket.ts @@ -112,7 +112,7 @@ export class BitbucketRemote extends RemoteProvider { } protected getUrlForBranch(branch: string): string { - return `${this.baseUrl}/commits/branch/${branch}`; + return `${this.baseUrl}/branch/${branch}`; } protected getUrlForCommit(sha: string): string { diff --git a/src/git/remotes/github.ts b/src/git/remotes/github.ts index f42debb..d338404 100644 --- a/src/git/remotes/github.ts +++ b/src/git/remotes/github.ts @@ -132,7 +132,7 @@ export class GitHubRemote extends RichRemoteProvider { } protected getUrlForBranch(branch: string): string { - return `${this.baseUrl}/commits/${branch}`; + return `${this.baseUrl}/tree/${branch}`; } protected getUrlForCommit(sha: string): string { diff --git a/src/git/remotes/gitlab.ts b/src/git/remotes/gitlab.ts index c80645c..8237311 100644 --- a/src/git/remotes/gitlab.ts +++ b/src/git/remotes/gitlab.ts @@ -107,7 +107,7 @@ export class GitLabRemote extends RemoteProvider { } protected getUrlForBranch(branch: string): string { - return `${this.baseUrl}/commits/${branch}`; + return `${this.baseUrl}/tree/${branch}`; } protected getUrlForCommit(sha: string): string {