Skip to content

Commit e7491b9

Browse files
committed
Fixes compare URL for bitbucket cloud
(#4142, #4143)
1 parent cede65a commit e7491b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/git/remotes/bitbucket.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ export class BitbucketRemote extends RemoteProvider<RepositoryDescriptor> {
144144
}
145145

146146
protected override getUrlForComparison(base: string, head: string, _notation: '..' | '...'): string {
147-
return this.encodeUrl(`${this.baseUrl}/branches/compare/${base}%0D${head}`).replace('%250D', '%0D');
147+
return `${this.encodeUrl(`${this.baseUrl}/branches/compare/${head}\r${base}`)}#diff`;
148148
}
149149

150150
protected override getUrlForCreatePullRequest(

0 commit comments

Comments
 (0)