device: Use pcidev_path_behind()
[coreboot.git] / util / lint / lint-extended-020-signed-off-by
blob065b286d349fb215e277f8d8ef1d6f26b02bc3ba
1 #!/bin/sh
2 # This file is part of the coreboot project.
4 # Copyright 2016 Google Inc.
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; version 2 of the License, or (at your option)
9 # any later version.
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # DESCR: Check for a signed-off-by line on the latest git commit
18 # This test is mainly for the jenkins server
19 if [ -n "$(command -v git)" ] && \
20 [ "$(git rev-parse --is-inside-work-tree 2>/dev/null)" = "true" ]
21 then
22 if [ -z "$(git log -n 1 | grep '[[:space:]]\+Signed-off-by: ')" ]; then
23 echo "No Signed-off-by line in commit message"