From 1f73138ce1272ea52c9b0119f5ef67aed28af836 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 1 Nov 2019 13:58:27 +0100 Subject: checksrc: repair the copyrightyear check - Consider a modified file to be committed this year. - Make the travis CHECKSRC also do COPYRIGHTYEAR scan in examples and includes - Ignore 0 parents when getting latest commit date of file. since in the CI we're dealing with a truncated repo of last 50 commits, the file's most recent commit may not be available. when this happens git log and rev-list show the initial commit (ie first commit not to be truncated) but that's incorrect so ignore it. Ref: https://github.com/curl/curl/pull/4547 Closes https://github.com/curl/curl/pull/4549 Co-authored-by: Jay Satiro --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index 3c4fb43e5..73ac0fb01 100644 --- a/.travis.yml +++ b/.travis.yml @@ -609,6 +609,8 @@ script: make test-nonflaky fi if [ -n $CHECKSRC ]; then + echo "enable COPYRIGHTYEAR" > ./docs/examples/.checksrc + echo "enable COPYRIGHTYEAR" > ./include/curl/.checksrc make checksrc fi fi -- cgit v1.2.3