From cb5548ceb8bb1366bde283f448ecdfacf11ba1db Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Mon, 8 Dec 2014 14:04:49 +0100 Subject: [PATCH] Fit better in with Jenkins --- check-contrib.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/check-contrib.sh b/check-contrib.sh index 03cf1362..fe9b4940 100755 --- a/check-contrib.sh +++ b/check-contrib.sh @@ -1,7 +1,7 @@ #!/bin/bash missing-authors() { - for email in $(git log --format=%ae master | sort | uniq) ; do + for email in $(git log --format=%ae HEAD | sort | uniq) ; do grep -q "$email" AUTHORS || echo $email done } @@ -28,15 +28,19 @@ print-missing-copyright() { authors=$(print-missing-authors) if [[ ! -z $authors ]] ; then + echo *** echo Author emails not in AUTHORS: echo $authors + echo *** exit 1 fi copy=$(print-missing-copyright) if [[ ! -z $copy ]] ; then + echo *** echo Files missing copyright notice: echo $copy + echo *** exit 1 fi