Try using tail again
Signed-off-by: Fabio Utzig <utzig@apache.org>
diff --git a/scripts/check-signed-off-by.sh b/scripts/check-signed-off-by.sh
index 65a22c1..8f5c4ee 100755
--- a/scripts/check-signed-off-by.sh
+++ b/scripts/check-signed-off-by.sh
@@ -15,7 +15,7 @@
MAIN_BRANCH=master
# ignores last commit because travis/gh creates a merge commit
-commits=$(git log --format=%h ${MAIN_BRANCH}..HEAD~1)
+commits=$(git log --format=%h ${MAIN_BRANCH}..HEAD | tail -n +2)
has_commits=false
for sha in $commits; do