diff options
author | 2024-06-02 07:53:37 +0200 | |
---|---|---|
committer | 2024-06-02 06:56:52 +0100 | |
commit | e24eacaa31707ef669cd5a9747a1bf08a5759fdf (patch) | |
tree | df6b3a68f0c8611e5af7bbbfd9d6b903e8f43bb6 | |
parent | update-03-filename: Allow .github/pull_request_template.md (diff) | |
download | githooks-e24eacaa31707ef669cd5a9747a1bf08a5759fdf.tar.gz githooks-e24eacaa31707ef669cd5a9747a1bf08a5759fdf.tar.bz2 githooks-e24eacaa31707ef669cd5a9747a1bf08a5759fdf.zip |
local/update-03-filename: Allow @ in filenamesgithooks-20240602T055652Z
As discussed in #gentoo-dev.
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Signed-off-by: Sam James <sam@gentoo.org>
-rwxr-xr-x | local/update-03-filename | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/local/update-03-filename b/local/update-03-filename index adbbc5f..a54c88f 100755 --- a/local/update-03-filename +++ b/local/update-03-filename @@ -1,6 +1,6 @@ #!/bin/bash # gentoo-infra: infra/githooks.git:update-03-filename -# Copyright 2015-2021 Ulrich Müller and others +# Copyright 2015-2024 Ulrich Müller and others # Distributed under the terms of the GNU General Public License v2 or later # Author: Ulrich Müller <ulm@gentoo.org> @@ -18,12 +18,12 @@ zeros=0000000000000000000000000000000000000000 [[ ${newrev} == "${zeros}" ]] && exit 0 # no need to check for new branch because we skip non-master commits above -# Filenames must contain only the characters [A-Za-z0-9._+-] and must +# Filenames must contain only the characters [A-Za-z0-9._+@-] and must # not begin with a dot, a hyphen, or a plus sign. # https://devmanual.gentoo.org/general-concepts/tree/#what-belongs-in-the-tree%3F # https://devmanual.gentoo.org/ebuild-writing/file-format/#file-naming-rules export LC_ALL=C -regex='^([A-Za-z0-9_][A-Za-z0-9._+-]*/)*[A-Za-z0-9_][A-Za-z0-9._+-]*$' +regex='^([A-Za-z0-9_][A-Za-z0-9._+-]*/)*[A-Za-z0-9_@][A-Za-z0-9._+@-]*$' exceptions=( .editorconfig .mailmap |