From d0e09f6191f27b98e356da113e903f03b756320b Mon Sep 17 00:00:00 2001
From: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Date: Wed, 22 May 2013 10:16:45 +0200
Subject: [PATCH] use 50KiB instead of 50kB as file size limit

messages like "Adding big file (49KiB > 50kB)" are a tad confusing.

Task-number: QTQAINFRA-485
Change-Id: If3ce78b47be8ba2e64075553abab7236044fb57a
Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
---
 git-hooks/sanitize-commit | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/git-hooks/sanitize-commit b/git-hooks/sanitize-commit
index 11e48cf..4711bd1 100755
--- a/git-hooks/sanitize-commit
+++ b/git-hooks/sanitize-commit
@@ -500,8 +500,8 @@ while (<DIFF>) {
                     if (!defined($cfg{giant})) {
                         &complain("Adding huge file (".formatSize($size)." > 2MiB)", "giant", 1);
                     }
-                } elsif ($size > 50000 && !$issrc && !defined($cfg{size})) {
-                    &complain("Warning: Adding big file (".formatSize($size)." > 50kB)", "size");
+                } elsif ($size > 51200 && !$issrc && !defined($cfg{size})) {
+                    &complain("Warning: Adding big file (".formatSize($size)." > 50KiB)", "size");
                 }
                 $size = 0;
                 $new_file = 1;
-- 
GitLab