Skip to content

Commit

Permalink
Make sure checkout will work, remove prune
Browse files Browse the repository at this point in the history
Yuhsiang M. Tsai <yhmtsai@gmail.com>
  • Loading branch information
tcojean committed Jul 22, 2022
1 parent 7ae922d commit 242fd62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/mirror.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ ssh-keyscan -t rsa gitlab.com github.com >>~/.ssh/known_hosts

# Fetch from github
git fetch fork "$BRANCH_NAME"
git checkout -b "$BRANCH_NAME"
git checkout -B "$BRANCH_NAME"
git reset --hard fork/"$BRANCH_NAME"
# Push to gitlab
git push -u --force --prune gitlab HEAD:$BRANCH_NAME
git push -u --force gitlab HEAD:$BRANCH_NAME

0 comments on commit 242fd62

Please sign in to comment.