Skip to content

Commit 1015169

Browse files
committed
ensure canCreateProject is case-insensitive
1 parent a15a073 commit 1015169

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

components/server/src/workspace/gitpod-server-impl.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2691,7 +2691,9 @@ export class GitpodServerImpl implements GitpodServerWithTracing, Disposable {
26912691
user: currentUser,
26922692
provider: "github.com",
26932693
});
2694-
return availableRepositories.some((r) => r.cloneUrl === cloneURL);
2694+
return availableRepositories.some(
2695+
(r) => r?.cloneUrl?.toLocaleLowerCase() === cloneURL?.toLocaleLowerCase(),
2696+
);
26952697
} else {
26962698
return await this.scmService.canInstallWebhook(currentUser, cloneURL);
26972699

0 commit comments

Comments
 (0)