fix: never use a read-only pull mirror as origin

`grove add` repoints an origin that is a Gitea/GitHub pull mirror to the
mirror's writable source (on a configured provider) and fetches it;
`grove import` clones the source instead of the mirror, keeping the
mirror's name and refusing a visibility mismatch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
dasemuandClaude Opus 5.5 committed 2026-11-16 21:11:24 +01:00
1 parent f150f778c3
commit 6720390e3f
7 files changed
+123 -3

No files matched your search

+2
View File
@@ -57,6 +57,8 @@ pub struct RemoteRepo {
/// SSH clone URL (empty when the forge did not report one).
pub ssh_url: String,
pub default_branch: String,
/// Where the repo is mirrored from when it is a read-only pull mirror (pushes are refused).
pub mirror_of: Option<String>,
}
impl RemoteRepo {