cctest-recipe-upstream: step 0 fetches by URL, remote-name agnostic

This commit is contained in:
2026-09-14 19:10:57 +00:00
parent b8161f15e4
commit c6dad5f11b
2 changed files with 4 additions and 6 deletions
+2 -3
View File
@@ -84,10 +84,9 @@ operator's machine must fetch it first. Always emit this **step 0** before the p
```
# 0. On a machine WITHOUT the branch pre-fetched, get it from the autonomic mirror
# (assumes a local checkout of the recipe that already has the mirror remote;
# its name here is `gitea`):
# (fetch by URL — works regardless of what the local remotes are named):
cd <local checkout of the recipe>
git fetch gitea +refs/pull/<PR_NUM>/head:refs/heads/<HEAD_REF>
git fetch https://git.autonomic.zone/recipe-maintainers/<recipe>.git +refs/pull/<PR_NUM>/head:refs/heads/<HEAD_REF>
git checkout <HEAD_REF>
```