Skip to content

Commit 07cce47

Browse files
committed
fixes overridden autolinks in commit details
1 parent 658a1d6 commit 07cce47

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/webviews/commitDetails/commitDetailsWebviewView.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -740,8 +740,12 @@ export class CommitDetailsWebviewView extends WebviewViewBase<State, Serialized<
740740
let autolinks;
741741
if (commit.message != null) {
742742
const customAutolinks = this.container.autolinks.getAutolinks(commit.message);
743-
const providerAutolinks = this.container.autolinks.getAutolinks(commit.message, remote);
744-
autolinks = new Map(union(customAutolinks, providerAutolinks));
743+
if (remote != null) {
744+
const providerAutolinks = this.container.autolinks.getAutolinks(commit.message, remote);
745+
autolinks = new Map(union(providerAutolinks, customAutolinks));
746+
} else {
747+
autolinks = customAutolinks;
748+
}
745749
}
746750

747751
return {

0 commit comments

Comments
 (0)