summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorPatrick Elsen <pelsen@xfbs.net>2020-01-05 23:34:01 +0100
committerPatrick Georgi <pgeorgi@google.com>2020-03-04 16:13:58 +0000
commit6e9f42bed90fb6e8b5642e4e55f1efca999d975a (patch)
treeac9f9a04dab73756681b7dcb287099ebcc42ce8c /util
parenta608dd80d514a8036954f6a0e5d19645e6ba3d9d (diff)
downloadcoreboot-6e9f42bed90fb6e8b5642e4e55f1efca999d975a.tar.xz
util/gitconfig: Fix commit-msg for BSD grep
BSD grep (on macOS) doesn't like repeated repetition operators, it throws the error grep: repetition-operator operand invalid This removes the superfluous repetition operator to make the commit-msg hook work on macOS and other platforms not using GNU grep. Change-Id: Id0f57d0f14634f7844b889d71342b2982fcadeb2 Signed-off-by: Patrick Elsen <pelsen@xfbs.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/38205 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'util')
-rwxr-xr-xutil/gitconfig/commit-msg2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/gitconfig/commit-msg b/util/gitconfig/commit-msg
index 2eef752156..ba6fa3ffb6 100755
--- a/util/gitconfig/commit-msg
+++ b/util/gitconfig/commit-msg
@@ -169,7 +169,7 @@ _gen_ChangeId() {
git hash-object -t commit --stdin
}
-if ! grep -qi '^[[:space:]]*\+Signed-off-by:' "$MSG"; then
+if ! grep -qi '^[[:space:]]*Signed-off-by:' "$MSG"; then
printf "\nError: No Signed-off-by line in the commit message.\n"
exit 1
fi