From e391e591397d7808506c13d36ff2b3884aa6818e Mon Sep 17 00:00:00 2001 From: ange Date: Mon, 18 Nov 2024 11:28:00 +0000 Subject: [PATCH] fix: remote set-url --- mirror.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mirror.sh b/mirror.sh index 0cba3f4..d1b574e 100755 --- a/mirror.sh +++ b/mirror.sh @@ -9,6 +9,6 @@ URL="${GITHUB_SERVER_URL/\/\//\/\/$GITHUB_REPOSITORY_OWNER:$INPUT_TOKEN@}/$GITHU git init -b main git remote add origin "$URL" -git remote add origin --push "$INPUT_URL" +git remote set-url --push origin "$INPUT_URL" git fetch -pP git push origin --mirror