Skip to content

Commit c29105e

Browse files
committed
script: Fix copyright_header.py
This change prevents updating copyright years from "2021" to "2021-2017".
1 parent de28c34 commit c29105e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/devtools/copyright_header.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ def create_updated_copyright_line(line, last_git_change_year):
371371
space_split = after_copyright.split(' ')
372372
year_range = space_split[0]
373373
start_year, end_year = parse_year_range(year_range)
374-
if end_year == last_git_change_year:
374+
if end_year >= last_git_change_year:
375375
return line
376376
return (before_copyright + copyright_splitter +
377377
year_range_to_str(start_year, last_git_change_year) + ' ' +

0 commit comments

Comments
 (0)