Skip to content

fix(remote): refuse a repository with a remote as a path remote - #180

Open
PiquelChips wants to merge 1 commit into
fix/fetch-the-merge-bases-snapshots-infrom
fix/refuse-a-repository-with-a-remote
Open

PiquelChips wants to merge 1 commit into
fix/fetch-the-merge-bases-snapshots-infrom
fix/refuse-a-repository-with-a-remote

Conversation

@PiquelChips

Copy link
Copy Markdown
Member

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 ci opens the working copy's own repository in-process, and it still can, because the check sits in the workspace, not in Remote::open.

Part of #166.

Note

Written by Claude Opus 5.5 in Claude Code (via T3 Code)

@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 96f9765a-0d41-4812-b8e1-9a58daf7f852

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@PiquelChips
PiquelChips added this pull request to stack #185 November 22, 2026 20:21
@PiquelChips
PiquelChips removed this pull request from stack #185 November 22, 2026 20:22
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
PiquelChips force-pushed the fix/fetch-the-merge-bases-snapshots-in branch from 1cd06d1 to 933d4fc Compare November 22, 2026 20:22
@PiquelChips
PiquelChips force-pushed the fix/refuse-a-repository-with-a-remote branch from dc79d7e to 2f57e63 Compare November 22, 2026 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant