Skip to content

Commit 2bb19e7

Browse files
jmberg-intelJonathan Corbet
authored andcommitted
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 <[email protected]> Tested-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: Jonathan Corbet <[email protected]> Link: https://lore.kernel.org/r/20230619115533.981f6abaca01.I1960c39b1d61e8514afcef4806a450a209133187@changeid
1 parent 95b4d47 commit 2bb19e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Documentation/maintainer/configure-git.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ by adding the following hook into your git:
5656
$ cat >.git/hooks/applypatch-msg <<'EOF'
5757
#!/bin/sh
5858
. git-sh-setup
59-
perl -pi -e 's|^Message-Id:\s*<?([^>]+)>?$|Link: https://lore.kernel.org/r/$1|g;' "$1"
59+
perl -pi -e 's|^Message-I[dD]:\s*<?([^>]+)>?$|Link: https://lore.kernel.org/r/$1|g;' "$1"
6060
test -x "$GIT_DIR/hooks/commit-msg" &&
6161
exec "$GIT_DIR/hooks/commit-msg" ${1+"$@"}
6262
:

0 commit comments

Comments
 (0)