GeezerVison is showing github.com — fix(gitcafe): SCP remotes with a leading slash find their repository by only21mil · Pull Request #44612 · pingdotgg/t3code
Conversation
Problem
A GitCafe checkout whose remote uses git's scp-like form with a leading slash, such as [email protected]:/team/project.git, is recognized as GitCafe but never resolves to a repository. git clone documents this spelling as [<user>@]<host>:/<path-to-git-repo>. parseGitCafeRemote keeps the slash in the path, so the strict owner/name check rejects /team/project and returns null. Pull request lookups for that checkout then fail with "No GitCafe repository remote was found."
Change
The SCP pattern in gitCafeHosts.ts now skips one optional / after the colon. The core repositoryPathFromRemoteUrl already does the same (#44007). gitCafeRepositoryPath stays strict, because the pull request provider uses it as an exact owner/name check.
Scope
Small fix of an obvious bug, so no issue. One line in packages/source-control-gitcafe, plus three test rows. Other remote shapes are out of scope.
Verification
gitCafeHosts.test.ts gains [email protected]:/team/project.git and git.cafe:/team/project.git. On main both fail (expected null to deeply equal { host: 'git.cafe', … }). A third row keeps git.cafe://team/project.git rejected, since only one slash is skipped. With the change all 13 tests pass.
- I ran a real-repo check: a fresh
git init with origin set to [email protected]:/team/project.git. GitCafeSourceControlProvider.listChangeRequests read that remote through real git config, with a recording HTTP client standing in for git.cafe:
| Remote |
main |
this PR |
[email protected]:team/project.git (control) |
team/project, requests /api/repos/team/project/pulls |
same |
[email protected]:/team/project.git |
null, "No GitCafe repository remote was found.", no request |
team/project, requests /api/repos/team/project/pulls |
vp run check:changed passes.
- Not checked: git.cafe's own SSH server with this spelling, since that needs a registered key.
Generated with Gemini 4 Neon in T3 Code Nightly
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Nov 28, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

No actionable comments were generated in the recent review.
Walkthrough
-
The GitCafe SCP-style remote pattern now accepts an optional slash after the colon. Tests cover this remote form and verify that a git.cafe:// URL returns null.
Changes: GitCafe remote parsing
| Layer / File(s) |
Summary |
Remote pattern and parsing tests packages/source-control-gitcafe/src/server/gitCafeHosts.ts, packages/source-control-gitcafe/src/server/gitCafeHosts.test.ts |
The SCP-style pattern accepts an optional slash after the colon. Tests cover a remote with the slash and reject a git.cafe:// URL. |
Estimated code review effort: 2 (Simple) | ~8 minutes
Change: Bug fix
Merge Risk: Minimal · up to 73763
-
GitCafe SCP remotes with a leading slash after the colon now resolve to their repository. The change is small and tested, and no merge-blocking risk remains.
Pre-merge checks: 4
-
| Check name |
Status |
Explanation |
| Title check |
 |
The title names the main change: the GitCafe SCP remote parser now accepts a leading slash so such remotes resolve to their repository. It uses the conventional commit format and is specific to the fi… |
| Description check |
 |
The description follows the template. It gives the problem and its reproduction path, the change with its scope limits, and a scope section that explains why no issue is linked. Verification lists foc… |
| Linked Issues check |
 |
Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check |
 |
Check skipped because no linked issues were found for this pull request. |
Full details: Title check
-
Explanation
The title names the main change: the GitCafe SCP remote parser now accepts a leading slash so such remotes resolve to their repository. It uses the conventional commit format and is specific to the fix.
Full details: Description check
-
Explanation
The description follows the template. It gives the problem and its reproduction path, the change with its scope limits, and a scope section that explains why no issue is linked. Verification lists focused tests, a real-repo check with before and after results, and the unchecked items. The description does not link an issue, but it explains why none is needed for a small obvious fix. It also names the model and harness, as the template asks.
Finishing Touches
-
Generate unit tests (beta)
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info
-
Run configuration
-
Commits
-
Reviewing files that changed from the base of the PR and between 9c3b486 and 7376317.
Files selected for processing: 1
-
packages/source-control-gitcafe/src/server/gitCafeHosts.test.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Evidence
Real web app, 1280×800, light theme, fresh isolated databases and Replay (dev), using the real GitCafe repository/API.
On each commit, fetch versecafe/webls over HTTPS, check out from_string() with its upstream configured, set origin to [email protected]:/versecafe/webls.git, create and open a thread, and inspect Version Control.
Scenario driver. scenarios:prove exited 0: failed on base and passed on head. Captures inspected.
Not shown:
- The userless git.cafe:/owner/repo SCP variant was not independently exercised; this proof covers the reported [email protected]:/owner/repo form.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
size:XS
0-9 changed lines (additions + deletions).
vouch:unvouched
Author is not yet trusted in the VOUCHED list.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|