diff --git a/selftests/signedoff-check.sh b/selftests/signedoff-check.sh index a904c61b80aa9e297797f562040ca79645c6c758..0afa914c6d47420045330b9abcd6e774022d36fc 100755 --- a/selftests/signedoff-check.sh +++ b/selftests/signedoff-check.sh @@ -1,7 +1,7 @@ #!/bin/sh -e -AUTHOR="$(git log -1 --pretty='format:%aN <%aE>')" -git log -1 --pretty=format:%B | grep "Signed-off-by: $AUTHOR" +AUTHOR="$(git log --no-merges -1 --pretty='format:%aN <%aE>')" +git log --no-merges -1 --pretty=format:%B | grep "Signed-off-by: $AUTHOR" if [ $? != 0 ]; then echo "The commit message does not contain author's signature (Signed-off-by: $AUTHOR)" return 1