Skip to content

Commit

Permalink
Merge pull request #5 from Glamhoth/glamhoth-fix-check-license
Browse files Browse the repository at this point in the history
Git: Filter out deleted files from license check
  • Loading branch information
Glamhoth authored Mar 10, 2022
2 parents 2265a50 + a3db210 commit 1fcd78c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sh/check_license.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ LICENSE_HEADER="^/\\*\\*
license_errors=()

# Take files changed in this commit
for fname in $(git diff --name-only --cached)
for fname in $(git diff --diff-filter=d --name-only --cached)
do
# Check only files with given extension
if [[ ${fname##*\.} == @(cc|hh) ]]; then
Expand Down

0 comments on commit 1fcd78c

Please sign in to comment.