Skip to content

Commit 9fe04db

Browse files
committed
BF: CS-1937 update_copyright.tcl sets incorrect years
1 parent aec8793 commit 9fe04db

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

source/scripts/update_copyright.tcl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,8 +563,9 @@ proc get_year_range_from_git {filename} {
563563

564564
# @todo need to call open and close in a catch block and check for error
565565
set dir [file dirname $filename]
566+
set gitfile [file tail $filename]
566567
set years {}
567-
set f [open |[list git -C $dir log --follow --since=2023 --pretty=format:%as\ %an -- $filename] "r"]
568+
set f [open |[list git -C $dir log --follow --since=2023 --pretty=format:%as -- $gitfile] "r"]
568569
while {[gets $f line] >= 0} {
569570
set year [lindex [split [lindex [split $line " "] 0] "-"] 0]
570571
lappend years $year

0 commit comments

Comments
 (0)