mirror of
https://github.com/RetroShare/RSNewWebUI.git
synced 2026-09-12 19:50:04 +05:00
Fix GitLab mirror failing on GitHub PR refs
The mirror workflow cloned with --mirror and pushed all refs, including GitHub's refs/pull/*, which GitLab rejects as hidden refs, failing the whole push. Clone --bare and push only refs/heads/* and refs/tags/* with --prune, keeping deletion sync while never touching PR refs.
This commit is contained in:
parent
a28d77fe9a
commit
198415c42e
4
.github/workflows/mirror-to-gitlab.yml
vendored
4
.github/workflows/mirror-to-gitlab.yml
vendored
@ -24,7 +24,7 @@ jobs:
|
||||
|
||||
- name: Mirror repository to GitLab
|
||||
run: |
|
||||
git clone --mirror "https://github.com/${GITHUB_REPOSITORY}.git" repo.git
|
||||
git clone --bare "https://github.com/${GITHUB_REPOSITORY}.git" repo.git
|
||||
cd repo.git
|
||||
git remote set-url --push origin git@gitlab.com:RetroShare/RetroShareWebUI.git
|
||||
git push --mirror
|
||||
git push --prune origin 'refs/heads/*:refs/heads/*' 'refs/tags/*:refs/tags/*'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user