Skip to content

Commit 5946df9

Browse files
committed
Make if statement more strict
1 parent 76987e8 commit 5946df9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/desktop/src/lib/gitHost/gitHostFactory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export class DefaultGitHostFactory implements GitHostFactory {
3737
usePullRequestTemplate
3838
});
3939
}
40-
if (source.includes(GITLAB_DOMAIN) || resource.includes(GITLAB_SUB_DOMAIN)) {
40+
if (source === GITLAB_DOMAIN || resource.startsWith(GITLAB_SUB_DOMAIN + ".")) {
4141
return new GitLab({ repo, baseBranch, forkStr });
4242
}
4343
if (source.includes(BITBUCKET_DOMAIN)) {

0 commit comments

Comments
 (0)