@devries-cameron20 / t3code-1 / commits / 3b5bfcec4f
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

fix(gitcafe): recognize ssh:// remotes that name no user (#32363)

Co-authored-by: azhar <azhar.amir@amartha.com> Co-authored-by: Julius Marminge <julius0216@outlook.com>

azhar committed Nov 15, 2026 at 12:12 UTC 3b5bfcec4f376078754f185d0fc5f6e7eab0156d
2 files changed +3 -1
packages/source-control-gitcafe/src/server/gitCafeHosts.test.ts
+2
@@ -16,6 +16,8 @@ describe("gitCafeHosts", () => {
16 ["https://staging.git.cafe/team/project.git/", "staging.git.cafe"],
17 ["ssh@git.cafe:team/project.git", "git.cafe"],
18 ["ssh://git@git.cafe/team/project.git", "git.cafe"],
19 + ["ssh://git.cafe/team/project.git", "git.cafe"],
20 + ["ssh://git.cafe:2222/team/project.git", "git.cafe"],
21 ["git.cafe:team/project.git", "git.cafe"],
22 ])("reads the host and repository of %s", (url, host) => {
23 assert.deepStrictEqual(GitCafeHosts.parseGitCafeRemote(url), {
packages/source-control-gitcafe/src/server/gitCafeHosts.ts
+1 -1
@@ -13,7 +13,7 @@ export function isGitCafeHost(host: string): boolean {
13 const REPOSITORY = /^[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+$/u;
14 const REMOTE_PATTERNS = [
15 /^https?:\/\/(?:[^@/]+@)?([^/:]+)(?::\d+)?\/(.+)$/iu,
16 - /^ssh:\/\/[^@/]+@([^/:]+)(?::\d+)?\/(.+)$/iu,
16 + /^ssh:\/\/(?:[^@/]+@)?([^/:]+)(?::\d+)?\/(.+)$/iu,
17 /^(?:[^@/:]+@)?([^/:]+):(.+)$/u,
18 ];
19