cctest-recipe-upstream: step 0 fetches by URL, remote-name agnostic
This commit is contained in:
@@ -56,10 +56,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>
|
||||
```
|
||||
|
||||
|
||||
@@ -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>
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user