Skip to content

Commit

Permalink
Fix debug line. (#83)
Browse files Browse the repository at this point in the history
The pre-commit script was always looking at all files from the vscode
directory.
  • Loading branch information
Florian Loitsch authored Jun 11, 2021
1 parent ae07b41 commit 8a2649e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion .githooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
EXTENSIONS="*.ts *.toit *.js"

new_files=$(git diff --name-only --diff-filter=A --cached -- $EXTENSIONS)
new_files=$(find vscode/src -name "*.ts")

for f in $new_files; do
if ! grep -L "Copyright .* Toitware" "$f" 2>&1 1>/dev/null; then
Expand Down

0 comments on commit 8a2649e

Please sign in to comment.