summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2023-06-19 11:55:34 +0200
committerJonathan Corbet <corbet@lwn.net>2023-06-21 09:15:15 -0600
commit2bb19e740e9b3eb42e5effcb0ad52a85433c1258 (patch)
tree6b914dbf61e5a932ba33abb32aaaf014ed28716e
parent95b4d47a44506a7dc924f10450280aeab20424d3 (diff)
downloadlinux-stable-2bb19e740e9b3eb42e5effcb0ad52a85433c1258.tar.gz
linux-stable-2bb19e740e9b3eb42e5effcb0ad52a85433c1258.tar.bz2
linux-stable-2bb19e740e9b3eb42e5effcb0ad52a85433c1258.zip
Documentation: update git configuration for Link: tag
The latest version of git (2.41.0) changed the spelling of Message-Id to Message-ID. Adjust the perl script here to accept both spellings. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Tested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Jonathan Corbet <corbet@lwn.net> Link: https://lore.kernel.org/r/20230619115533.981f6abaca01.I1960c39b1d61e8514afcef4806a450a209133187@changeid
-rw-r--r--Documentation/maintainer/configure-git.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/maintainer/configure-git.rst b/Documentation/maintainer/configure-git.rst
index 80ae5030a590..ec0ddfb9cdd3 100644
--- a/Documentation/maintainer/configure-git.rst
+++ b/Documentation/maintainer/configure-git.rst
@@ -56,7 +56,7 @@ by adding the following hook into your git:
$ cat >.git/hooks/applypatch-msg <<'EOF'
#!/bin/sh
. git-sh-setup
- perl -pi -e 's|^Message-Id:\s*<?([^>]+)>?$|Link: https://lore.kernel.org/r/$1|g;' "$1"
+ perl -pi -e 's|^Message-I[dD]:\s*<?([^>]+)>?$|Link: https://lore.kernel.org/r/$1|g;' "$1"
test -x "$GIT_DIR/hooks/commit-msg" &&
exec "$GIT_DIR/hooks/commit-msg" ${1+"$@"}
: