spork-create: fix ambiguous main branch checkout in mirror-sync template
git checkout <branch> is ambiguous when both origin and mirror remotes have the same branch name. Use -B to explicitly create from origin. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
21b465bf18
commit
4e09aed9d8
1 changed files with 1 additions and 1 deletions
|
|
@ -153,7 +153,7 @@ def mirror_sync_workflow(main_branch: str, repo_name: str) -> str:
|
||||||
|
|
||||||
- name: Fast-forward {main_branch} from mirror
|
- name: Fast-forward {main_branch} from mirror
|
||||||
run: |
|
run: |
|
||||||
git checkout {main_branch}
|
git checkout -B {main_branch} origin/{main_branch}
|
||||||
git merge --ff-only mirror/{main_branch}
|
git merge --ff-only mirror/{main_branch}
|
||||||
git push origin {main_branch}
|
git push origin {main_branch}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue