From 23f605309e82adc090b2c51407045e25a0bfd3e7 Mon Sep 17 00:00:00 2001 From: Jan Schoenfeld Date: Sat, 7 Nov 2026 21:23:50 +0100 Subject: Emit one marker tag per line so git push gets a valid refspec --- scripts/verify-mirror.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'scripts') 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 -- cgit v1.2.3