diff options
| author | Jan Schoenfeld <jan@dieschoenewolke.de> | 2026-11-07 21:23:50 +0100 |
|---|---|---|
| committer | Jan Schoenfeld <jan@dieschoenewolke.de> | 2026-11-07 21:23:50 +0100 |
| commit | 23f605309e82adc090b2c51407045e25a0bfd3e7 (patch) | |
| tree | 5fe28680ff8c7ace5a8342b22bb400c30678433f | |
| parent | 4c44d0320b9553377cc40899e8199e4665802ffe (diff) | |
Emit one marker tag per line so git push gets a valid refspecHEADsynced-static-nonroot-25ac8f0c3b23synced-static-latest-448810357cc8synced-static-debug-nonroot-12c2026b21e0synced-static-debug-63b4c0065ff7synced-python3-nonroot-c3ed2b61f3c4synced-python3-nonroot-1c32c3720dc4synced-python3-latest-9a1ed29d41d7synced-python3-latest-5bac3c3ab334synced-python3-debug-nonroot-425408c4e797synced-python3-debug-nonroot-2d5c9eb81aa8synced-python3-debug-f40b59a6222bsynced-python3-debug-9e30fa6c022csynced-cc-nonroot-cc66d222f0a7synced-cc-nonroot-08476c244888synced-cc-latest-e1f5543d45a2synced-cc-latest-58e12be89927synced-cc-debug-nonroot-c69d16acb50asynced-cc-debug-nonroot-8b33d8213449synced-cc-debug-ca230038e47bsynced-cc-debug-6ff40c52e557synced-base-nonroot-9039a88709bcsynced-base-nonroot-7fe4df6a4413synced-base-latest-ca90dc233300synced-base-latest-075a33d9c490synced-base-debug-nonroot-4fb1c9c8d877synced-base-debug-nonroot-3c94d8e54b4bsynced-base-debug-f877f0a442ecsynced-base-debug-7818c9cd19afmain
| -rwxr-xr-x | scripts/verify-mirror.sh | 7 |
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 |
