Repository navigation
fix(remote): refuse a repository with a remote as a path remote - #180
Open
PiquelChips wants to merge 1 commit into
Open
PiquelChips wants to merge 1 commit into
PiquelChips wants to merge 1 commit into
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
A push to a repository on a local path left out the snapshot objects this node holds whole, taking the remote to hold them too. A clone doesn't: it only holds the snapshots it read, so the push failed the remote's dependency checks, and a clone of it failed to fetch. A workspace now refuses, as its remote or the one it clones, a repository on a path that has a remote of its own. `origin ci`, which opens the working copy's own repository in-process, still can.
PiquelChips
force-pushed
the
fix/fetch-the-merge-bases-snapshots-in
branch
from
November 22, 2026 20:22
1cd06d1 to
933d4fc
Compare
PiquelChips
force-pushed
the
fix/refuse-a-repository-with-a-remote
branch
from
November 22, 2026 20:22
dc79d7e to
2f57e63
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
A push to a repository on a local path leaves out the snapshot objects the pushing node holds whole, on the assumption that the remote holds them too. A clone doesn't: it only holds the snapshots it read. So a push to a clone could fail the remote's dependency checks, and cloning a clone could fail to fetch.
A workspace now refuses a repository on a local path that has a remote of its own (a clone, or any repository that fetches from elsewhere), both as its remote and as the source of
origin clone. The error points at that repository's own remote instead.origin ciopens the working copy's own repository in-process, and it still can, because the check sits in the workspace, not inRemote::open.Part of #166.
Note
Written by Claude Opus 5.5 in Claude Code (via T3 Code)