diff options
-rwxr-xr-x | git-hooks/sanitize-commit | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/git-hooks/sanitize-commit b/git-hooks/sanitize-commit index 42b91d0..a90aabf 100755 --- a/git-hooks/sanitize-commit +++ b/git-hooks/sanitize-commit @@ -848,8 +848,8 @@ while (<DIFF>) { if (!defined($cfg{giant})) { complain("Adding huge file (".formatSize($size)." > 2MiB)", "giant", 1); } - } elsif ($size > 51200 && !$issrc && !defined($cfg{size})) { - complain("Warning: Adding big file (".formatSize($size)." > 50KiB)", "size"); + } elsif ($size >= 51200 && !$issrc && !defined($cfg{size})) { + complain("Warning: Adding big file (".formatSize($size)." >= 50KiB)", "size"); } $size = 0; $new_file = 1; |