Skip to content

Commit

Permalink
Verify copyright years based on author date instead of comitter date (H…
Browse files Browse the repository at this point in the history
  • Loading branch information
martinholters authored Feb 1, 2022
1 parent 55062b2 commit 5daed47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/checklic.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2018, 2019 Martin Holters
# Copyright 2018, 2019, 2022 Martin Holters
# See accompanying license file.
ACMEdir = joinpath(@__DIR__, "..")
println("Checking copyright headers...")
Expand All @@ -9,7 +9,7 @@ for dirname in ("src", "examples", "test")
name = joinpath(dirname, name)
local years
try
years = sort!(unique(parse.([Int], readlines(`git log --format=%cd --date=format:%Y -- $name`))))
years = sort!(unique(parse.([Int], readlines(`git log --format=%ad --date=format:%Y -- $name`))))
catch e
@warn e
continue
Expand Down

0 comments on commit 5daed47

Please sign in to comment.