[ARVADOS-DEV] updated: 2f7e545114035b9c8750ff13c0e3e0d25cc5d618

Git user git at public.arvados.org
Mon Jun 15 19:05:21 UTC 2020


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

       via  2f7e545114035b9c8750ff13c0e3e0d25cc5d618 (commit)
      from  25b75e426d3e3649a608e83b6cd0bbd47a56fc01 (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 2f7e545114035b9c8750ff13c0e3e0d25cc5d618
Author: Ward Vandewege <ward at curii.com>
Date:   Mon Jun 15 15:04:32 2020 -0400

    Do not print a noisy warning when there is no .licenseignore file.
    
    No issue #
    
    Arvados-DCO-1.1-Signed-off-by: Ward Vandewege <ward at curii.com>

diff --git a/git/hooks/check-copyright-headers.rb b/git/hooks/check-copyright-headers.rb
index 6788c5d..e5d86a1 100755
--- a/git/hooks/check-copyright-headers.rb
+++ b/git/hooks/check-copyright-headers.rb
@@ -21,7 +21,7 @@ puts "Enforcing copyright headers..."
 puts "(#{$refname}) (#{$oldrev[0,6]}) (#{$newrev[0,6]})"
 
 def load_licenseignore
-  $licenseignore = `git show #{$newrev}:.licenseignore`.gsub(/\./,'\\.').gsub(/\*/,'.*').gsub(/\?/,'.').split("\n")
+  $licenseignore = `git show #{$newrev}:.licenseignore 2>/dev/null`.gsub(/\./,'\\.').gsub(/\*/,'.*').gsub(/\?/,'.').split("\n")
 end
 
 def check_file(filename, header, broken)

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list