Browse Source

Fit better in with Jenkins

Jakob Borg 11 năm trước cách đây
mục cha
commit
cb5548ceb8
1 tập tin đã thay đổi với 5 bổ sung1 xóa
  1. 5 1
      check-contrib.sh

+ 5 - 1
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