[ARVADOS-DEV] updated: 99fb28d9d051baee0f0cb0588913676535082914

Git user git at public.curoverse.com
Fri May 25 16:49:01 EDT 2018


Summary of changes:
 git/hooks/check-copyright-headers.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

       via  99fb28d9d051baee0f0cb0588913676535082914 (commit)
      from  f5c0804e329500d619fe184ccffbccdfd973d7cd (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 99fb28d9d051baee0f0cb0588913676535082914
Author: Ward Vandewege <wvandewege at veritasgenetics.com>
Date:   Fri May 25 16:48:14 2018 -0400

    When enforcing copyright headers, do not consider commits that are already part
    of the git history of the repository.
    
    No issue #
    
    Arvados-DCO-1.1-Signed-off-by: Ward Vandewege <wvandewege at veritasgenetics.com>

diff --git a/git/hooks/check-copyright-headers.sh b/git/hooks/check-copyright-headers.sh
index 18796f2..53dde73 100755
--- a/git/hooks/check-copyright-headers.sh
+++ b/git/hooks/check-copyright-headers.sh
@@ -30,7 +30,7 @@ rm -f $LICENSEIGNORE
 
 oldIFS="$IFS"
 IFS=$'\n'
-for rev in $(git rev-list --objects $2..$3 | git cat-file --batch-check='%(objecttype) %(objectname) %(objectsize) %(rest)'| sed -n 's/^blob //p'); do
+for rev in $(git rev-list --objects $OLDREV..$NEWREV --not --branches='*' | git cat-file --batch-check='%(objecttype) %(objectname) %(objectsize) %(rest)'| sed -n 's/^blob //p'); do
 
   IFS="$oldIFS" read -r -a array <<<"$rev"
   sha=${array[0]}

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list