David Hendricks has uploaded this change for review. ( https://review.coreboot.org/c/flashrom/+/35295 )
Change subject: util/git-hooks: Check for Signed-off-by line
......................................................................
util/git-hooks: Check for Signed-off-by line
Enforce the DCO. The logic comes from coreboot's commit-msg hook,
and I've added a pointer to flashrom's development guidelines.
Change-Id: Iea49a06c2d4824be073eff98c8aae1cbc5b145e4
Signed-off-by: David Hendricks <david.hendricks(a)gmail.com>
---
M util/git-hooks/commit-msg
1 file changed, 11 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/95/35295/1
diff --git a/util/git-hooks/commit-msg b/util/git-hooks/commit-msg
index 346c08f..fff0e29 100755
--- a/util/git-hooks/commit-msg
+++ b/util/git-hooks/commit-msg
@@ -28,6 +28,8 @@
CHANGE_ID_AFTER="Bug|Depends-On|Issue|Test|Feature|Fixes|Fixed|Staging-ID"
MSG="$1"
+DEV_GUIDELINES_URL="https://www.flashrom.org/Development_Guidelines"
+
# Check for, and add if missing, a unique Change-Id
#
add_ChangeId() {
@@ -201,8 +203,17 @@
}
}
+test_sign_off() {
+ if ! grep -qi '^[[:space:]]*\+Signed-off-by:' "$MSG"; then
+ printf "\nError: No Signed-off-by line in the commit message.\n"
+ printf "See: ${DEV_GUIDELINES_URL}\n"
+ exit 1
+ fi
+}
+
main() {
test_duplicate_signoffs_acks
+ test_sign_off
add_ChangeId
}
--
To view, visit https://review.coreboot.org/c/flashrom/+/35295
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: Iea49a06c2d4824be073eff98c8aae1cbc5b145e4
Gerrit-Change-Number: 35295
Gerrit-PatchSet: 1
Gerrit-Owner: David Hendricks <david.hendricks(a)gmail.com>
Gerrit-MessageType: newchange
Nico Huber has uploaded this change for review. ( https://review.coreboot.org/c/flashrom/+/35584 )
Change subject: meson: Correct license to GPL-2.0
......................................................................
meson: Correct license to GPL-2.0
Parts of flashrom are 2.0+ but some are not. As Meson's purpose is to
link these together, it should advertise only GPL-2.0 for the whole.
Change-Id: Iab99c74f5f9d54dac56085ecc7475b14be00a310
Signed-off-by: Nico Huber <nico.h(a)gmx.de>
---
M meson.build
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/84/35584/1
diff --git a/meson.build b/meson.build
index b475f64..4be68e2 100644
--- a/meson.build
+++ b/meson.build
@@ -1,6 +1,6 @@
project('flashromutils', 'c',
version : run_command('util/getversion.sh', '-v').stdout().strip(),
- license : 'GPL-2.0+',
+ license : 'GPL-2.0',
meson_version : '>=0.47.0',
default_options : ['warning_level=2', 'c_std=c99'],
)
--
To view, visit https://review.coreboot.org/c/flashrom/+/35584
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: Iab99c74f5f9d54dac56085ecc7475b14be00a310
Gerrit-Change-Number: 35584
Gerrit-PatchSet: 1
Gerrit-Owner: Nico Huber <nico.h(a)gmx.de>
Gerrit-MessageType: newchange