From 88b34fac12adc95e4de0c50f48b72c2168e8fadd Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Wed, 26 Jul 2023 10:44:56 +0200 Subject: [PATCH] apply-from-lore: allow specifying non-Git URLs The public-inbox system is used for all kinds of projects that still use that quaint mailing-list centric patch contribution process, not only for Git. For example, Cygwin uses it, too. The `apply-from-lore.sh` script already allowed applying individual patches from other projects' public-inbox URLs. With this change, it is now also possible to apply patch _series_ from such public-inbox URLs, such as https://inbox.sourceware.org/cygwin-patches/20230712120804.2992142-1-corinna-cygwin@cygwin.com/ Signed-off-by: Johannes Schindelin --- apply-from-lore.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apply-from-lore.sh b/apply-from-lore.sh index 3c81cd79eb..fc9b070e56 100755 --- a/apply-from-lore.sh +++ b/apply-from-lore.sh @@ -89,8 +89,7 @@ do s/^href="\.\.\/\([^"]*\).*/\1/p;q }' <"$OUT2")" test -n "$URL3" || break - curl -f https://lore.kernel.org/git/${URL3%/}/raw \ - >>"$OUT3" || + curl -f "${URL%/*/raw}/${URL3%/}/raw" >>"$OUT3" || die "Could not retrieve $URL3" >&2 NO=$(($NO+1)) done