Make sure to convert the globs in .licenseignore into regular
[arvados-dev.git] / git / hooks / check-copyright-headers.rb
index b2352701b42580f264b268b5fa47651f427ae2b8..6788c5dd6074ff082ede9b698e58e2ad65990044 100755 (executable)
@@ -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)