Change the pattern matching for our copyright header so that it doesn't croak
authorWard Vandewege <wvandewege@veritasgenetics.com>
Wed, 23 May 2018 21:47:20 +0000 (17:47 -0400)
committerWard Vandewege <wvandewege@veritasgenetics.com>
Wed, 23 May 2018 21:48:12 +0000 (17:48 -0400)
on files that are copyright someone else.

No issue #

Arvados-DCO-1.1-Signed-off-by: Ward Vandewege <wvandewege@veritasgenetics.com>

git/hooks/check-copyright-headers.sh

index 1eccfe43495f1c5faef39ac10ac07dddf98181ae..18796f24a7ad20e35576fa7c9b5ce97255433a37 100755 (executable)
@@ -45,7 +45,7 @@ for rev in $(git rev-list --objects $2..$3 | git cat-file --batch-check='%(objec
   done
   if [[ ${ignore} = 1 ]]; then continue; fi
 
-  HEADER=`git show ${sha} | head -n20 | egrep -A3 -B1 'Copyright.*Arvados'`
+  HEADER=`git show ${sha} | head -n20 | egrep -A3 -B1 'Copyright.*All rights reserved.'`
 
   if [[ ! "$HEADER" =~ "SPDX-License-Identifier:" ]]; then
     if [[ "$EXITCODE" == "0" ]]; then