Skip to content

Commit

Permalink
Skip SCM admin directories when bumping copyright years
Browse files Browse the repository at this point in the history
  • Loading branch information
cmpilato committed Dec 31, 2021
1 parent 3541bd8 commit 2b576b0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/bump-copyright-years
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ def bump_years_recursive(target_dir, year):
children = os.listdir(target_dir)
for child in children:
child_path = os.path.join(target_dir, child)
if child in [".git", ".svn"]:
sys.stderr.write("Skipping SCM administrative directory: %s\n"
% (child_path))
continue
if os.path.isfile(child_path):
try:
replace_end_year(child_path, year)
Expand Down

0 comments on commit 2b576b0

Please # to comment.