doc: ensure_mirror_repo docstring — 409 only, not 409/422 (match the fix)

This commit is contained in:
atlas 2026-06-29 00:20:45 +02:00 committed by mara
commit af7ec98542

View file

@ -959,8 +959,8 @@ async fn ensure_mirrors(admin_token: &str) {
/// Create `owner/repo` as a pull-mirror of `upstream` via the migrate API.
/// Idempotent: a cheap existence check skips an already-seeded mirror (it
/// persists in the non-ephemeral forge state across reboots), and a
/// 409/422 from migrate is also treated as success.
/// persists in the non-ephemeral forge state across reboots); a 409 (a race
/// between that check and the POST) is also treated as success.
async fn ensure_mirror_repo(
upstream: &str,
owner: &str,