diff --git a/.github/workflows/mirror-to-gitlab.yml b/.github/workflows/mirror-to-gitlab.yml index 5aa96a8..4b1b61b 100644 --- a/.github/workflows/mirror-to-gitlab.yml +++ b/.github/workflows/mirror-to-gitlab.yml @@ -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/BitDHT.git - git push --mirror + git push --prune origin 'refs/heads/*:refs/heads/*' 'refs/tags/*:refs/tags/*'