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
c58a781b
Commit
c58a781b
authored
Feb 10, 2016
by
murgatroid99
Browse files
Options
Downloads
Patches
Plain Diff
Handle failing git command in check_copyright.py
parent
f656f189
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
+8
-2
8 additions, 2 deletions
tools/distrib/check_copyright.py
with
8 additions
and
2 deletions
tools/distrib/check_copyright.py
+
8
−
2
View file @
c58a781b
...
@@ -131,8 +131,14 @@ def log(cond, why, filename):
...
@@ -131,8 +131,14 @@ def log(cond, why, filename):
# scan files, validate the text
# scan files, validate the text
ok
=
True
ok
=
True
for
filename
in
subprocess
.
check_output
(
FILE_LIST_COMMAND
,
filename_list
=
[]
shell
=
True
).
splitlines
():
try
:
filename_list
=
subprocess
.
check_output
(
FILE_LIST_COMMAND
,
shell
=
True
).
splitlines
()
except
subprocess
.
CalledProcessError
:
sys
.
exit
(
0
)
for
filename
in
filename_list
:
if
filename
in
KNOWN_BAD
:
continue
if
filename
in
KNOWN_BAD
:
continue
ext
=
os
.
path
.
splitext
(
filename
)[
1
]
ext
=
os
.
path
.
splitext
(
filename
)[
1
]
base
=
os
.
path
.
basename
(
filename
)
base
=
os
.
path
.
basename
(
filename
)
...
...
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