Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
bff0d4f2
Commit
bff0d4f2
authored
Jan 12, 2016
by
Michael Lumish
Browse files
Options
Downloads
Plain Diff
Merge pull request #4685 from ctiller/copywrong
Fix check_copyright.py
parents
2a9e76fa
750d3ed8
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/distrib/check_copyright.py
+1
-1
1 addition, 1 deletion
tools/distrib/check_copyright.py
with
1 addition
and
1 deletion
tools/distrib/check_copyright.py
+
1
−
1
View file @
bff0d4f2
...
@@ -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
])
...
...
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment