From 885bb27a7c7b09cf69efd629f506848c268f9574 Mon Sep 17 00:00:00 2001 From: Kevin Burke Date: Thu, 19 Mar 2026 14:25:44 -0700 Subject: [PATCH] fix: follow redirects when fetching gnulib init.sh in upstream test suite The gnulib gitweb server returns a 302 redirect, but curl was called without -L so it saved the HTML redirect page instead of init.sh. This caused all 33 GNU upstream tests to fail in CI since the init.sh fetch was introduced in c1b66e4. Co-Authored-By: Claude Opus 4.6 --- tests/run-upstream-testsuite.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/run-upstream-testsuite.sh b/tests/run-upstream-testsuite.sh index 2593eb2..c73cfe8 100755 --- a/tests/run-upstream-testsuite.sh +++ b/tests/run-upstream-testsuite.sh @@ -62,7 +62,7 @@ cd ../tests # Fetch tests/init.sh from the gnulib repository (needed since # https://git.savannah.gnu.org/cgit/diffutils.git/commit/tests?id=1d2456f539) -curl -s "$gitserver/gitweb/?p=gnulib.git;a=blob_plain;f=tests/init.sh;hb=HEAD" -o init.sh +curl -sL "$gitserver/gitweb/?p=gnulib.git;a=blob_plain;f=tests/init.sh;hb=HEAD" -o init.sh if [[ -n "$TESTS" ]] then