From 74966bbc8f8bbd7d4dadfe65aa17e4d963b470be Mon Sep 17 00:00:00 2001 From: "Alex Pooley (@zuedev)" Date: Thu, 7 May 2026 23:24:15 +0100 Subject: strip the https:// prefix from the stored URL before constructing the authenticated push URL --- scripts/push-repo-mirrors.bash | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/push-repo-mirrors.bash b/scripts/push-repo-mirrors.bash index ae63307..43db9a7 100644 --- a/scripts/push-repo-mirrors.bash +++ b/scripts/push-repo-mirrors.bash @@ -39,8 +39,9 @@ for repository in /repositories/*; do GITHUB_TOKEN=$(cat /run/secrets/github_token) + mirror_host="${mirror#https://}" echo "Pushing to GitHub mirror: $mirror" - git push --mirror "https://x-access-token:$GITHUB_TOKEN@$mirror" || echo "Failed to push to $mirror" + git push --mirror "https://x-access-token:$GITHUB_TOKEN@$mirror_host" || echo "Failed to push to $mirror" ;; *) echo "Unknown mirror type: $mirror. Skipping." -- cgit v1.2.3