Skip to content
Snippets Groups Projects
Commit bff0d4f2 authored by Michael Lumish's avatar Michael Lumish
Browse files

Merge pull request #4685 from ctiller/copywrong

Fix check_copyright.py
parents 2a9e76fa 750d3ed8
Branches
Tags
No related merge requests found
...@@ -117,6 +117,7 @@ def log(cond, why, filename): ...@@ -117,6 +117,7 @@ def log(cond, why, filename):
# scan files, validate the text # scan files, validate the text
ok = True
for filename in subprocess.check_output('git ls-tree -r --name-only -r HEAD', for filename in subprocess.check_output('git ls-tree -r --name-only -r HEAD',
shell=True).splitlines(): shell=True).splitlines():
if filename in KNOWN_BAD: continue if filename in KNOWN_BAD: continue
...@@ -130,7 +131,6 @@ for filename in subprocess.check_output('git ls-tree -r --name-only -r HEAD', ...@@ -130,7 +131,6 @@ for filename in subprocess.check_output('git ls-tree -r --name-only -r HEAD',
log(args.skips, 'skip', filename) log(args.skips, 'skip', filename)
continue continue
text = load(filename) text = load(filename)
ok = True
m = re.search(re_license, text) m = re.search(re_license, text)
if m: if m:
last_modified = int(subprocess.check_output('git log -1 --format="%ad" --date=short -- ' + filename, shell=True)[0:4]) last_modified = int(subprocess.check_output('git log -1 --format="%ad" --date=short -- ' + filename, shell=True)[0:4])
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment