Skip to content

Commit 88b34fa

Browse files
committed
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/[email protected]/ Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 992bc93 commit 88b34fa

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

apply-from-lore.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,7 @@ do
8989
s/^href="\.\.\/\([^"]*\).*/\1/p;q
9090
}' <"$OUT2")"
9191
test -n "$URL3" || break
92-
curl -f https://lore.kernel.org/git/${URL3%/}/raw \
93-
>>"$OUT3" ||
92+
curl -f "${URL%/*/raw}/${URL3%/}/raw" >>"$OUT3" ||
9493
die "Could not retrieve $URL3" >&2
9594
NO=$(($NO+1))
9695
done

0 commit comments

Comments
 (0)