Read-only mirror — the public repositories of the Forgejo instance, refreshed every 10 minutes. The live instance (fg.dieschoenewolke.de) is reachable only over the VPN; clone here with https://git.dieschoenewolke.de/git/<owner>/<repo>.git.
summaryrefslogtreecommitdiff
path: root/scripts/verify-mirror.sh
diff options
context:
space:
mode:
authorJan Schoenfeld <jan@dieschoenewolke.de>2026-11-07 21:23:50 +0100
committerJan Schoenfeld <jan@dieschoenewolke.de>2026-11-07 21:23:50 +0100
commit23f605309e82adc090b2c51407045e25a0bfd3e7 (patch)
tree5fe28680ff8c7ace5a8342b22bb400c30678433f /scripts/verify-mirror.sh
parent4c44d0320b9553377cc40899e8199e4665802ffe (diff)
Diffstat (limited to 'scripts/verify-mirror.sh')
-rwxr-xr-xscripts/verify-mirror.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/verify-mirror.sh b/scripts/verify-mirror.sh
index 42f10bf..dec79f6 100755
--- a/scripts/verify-mirror.sh
+++ b/scripts/verify-mirror.sh
@@ -176,7 +176,10 @@ for repo in $REPOS; do
failures=$((failures + 1))
continue
fi
- new_markers="$new_markers $marker"
+ # One marker per line: the publish step reads the file line by line and
+ # hands each line to git push as a single refspec. A space separated
+ # line becomes one bogus refspec ("fatal: invalid refspec").
+ new_markers="${new_markers}${marker}"$'\n'
done
done
@@ -184,7 +187,7 @@ say ""
say "verified=$verified unchanged=$unchanged pending=$pending failures=$failures"
if [ -n "$new_markers" ]; then
- printf '%s\n' "${new_markers# }" >"${MARKERS_FILE:-/tmp/mirror-markers}"
+ printf '%s' "$new_markers" >"${MARKERS_FILE:-/tmp/mirror-markers}"
fi
[ "$failures" -eq 0 ] || exit 1