Skip to content

Commit b664e07

Browse files
committed
reasonable file size default
Signed-off-by: John Seekins <john.seekins@spoileralert.com>
1 parent 412786f commit b664e07

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

.lefthook.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,6 @@ pre-commit:
5858

5959
- name: check for bad file details
6060
run: tools/check-file-details.sh {staged_files}
61-
env:
62-
- FILE_SIZE: 107374182400
6361
stage_fixed: true
6462

6563
output:

tools/check-file-details.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ else
1515
fi
1616
SHEBANG_FIXED=()
1717
WHITESPACE_TO_FIX=()
18-
FILE_SIZE=${FILE_SIZE:-5000}
18+
# default to 5 MB
19+
FILE_SIZE=${FILE_SIZE:-5000000}
1920
TOO_BIG=()
2021
exit_code=0
2122

0 commit comments

Comments
 (0)