Skip to content

Commit 23890b6

Browse files
fix: follow redirects when fetching gnulib init.sh in upstream test suite (#202)
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 <noreply@anthropic.com>
1 parent 5fc37c7 commit 23890b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/run-upstream-testsuite.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ cd ../tests
6262

6363
# Fetch tests/init.sh from the gnulib repository (needed since
6464
# https://git.savannah.gnu.org/cgit/diffutils.git/commit/tests?id=1d2456f539)
65-
curl -s "$gitserver/gitweb/?p=gnulib.git;a=blob_plain;f=tests/init.sh;hb=HEAD" -o init.sh
65+
curl -sL "$gitserver/gitweb/?p=gnulib.git;a=blob_plain;f=tests/init.sh;hb=HEAD" -o init.sh
6666

6767
if [[ -n "$TESTS" ]]
6868
then

0 commit comments

Comments
 (0)