projects
/
arvados-dev.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e5eca30
)
Make sure to convert the globs in .licenseignore into regular
author
Ward Vandewege <ward@curii.com>
Mon, 15 Jun 2020 18:57:55 +0000
(14:57 -0400)
committer
Ward Vandewege <ward@curii.com>
Mon, 15 Jun 2020 18:57:55 +0000
(14:57 -0400)
expressions.
No issue #
Arvados-DCO-1.1-Signed-off-by: Ward Vandewege <ward@curii.com>
git/hooks/check-copyright-headers.rb
patch
|
blob
|
history
diff --git
a/git/hooks/check-copyright-headers.rb
b/git/hooks/check-copyright-headers.rb
index b2352701b42580f264b268b5fa47651f427ae2b8..6788c5dd6074ff082ede9b698e58e2ad65990044 100755
(executable)
--- 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`.split("\n")
+ $licenseignore = `git show #{$newrev}:.licenseignore`.
gsub(/\./,'\\.').gsub(/\*/,'.*').gsub(/\?/,'.').
split("\n")
end
def check_file(filename, header, broken)