Update mirror.yml

try switch with create
This commit is contained in:
sidey79 2022-09-04 22:35:10 +02:00 committed by GitHub
parent 024b9aae9c
commit 3406385d95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -93,8 +93,7 @@ jobs:
RET=0
timeout 1800 git svn -q --log-window-size=5000 fetch || timeout 1500 git svn -q --log-window-size=5000 fetch || RET=$?;
if [[ $RET == 0 ]]; then
git branch -f master
git checkout master
git switch -c master
git config --global user.email "actions@gitbhub.com"
git config --global user.name "Github Actions"
git reset --hard "remotes/svn/trunk"