From a1b67d6b9bd0762d3e252a01a35cdafc60f6d58e Mon Sep 17 00:00:00 2001 From: ange Date: Mon, 18 Nov 2024 11:25:16 +0000 Subject: [PATCH] fix: remote URL push --- mirror.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mirror.sh b/mirror.sh index 4b0e5fa..0cba3f4 100755 --- a/mirror.sh +++ b/mirror.sh @@ -9,5 +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 fetch -pP -git push origin --repo="$INPUT_URL" --mirror +git push origin --mirror