Updating datafile limit to 250K; adding .wiki-repo touchfile to bypass compile and package checks
This commit is contained in:
@@ -8,7 +8,13 @@
|
||||
# To enable this hook, rename this file to "pre-commit".
|
||||
|
||||
# Run all our checking scripts.
|
||||
for script in $(find `dirname "$0"`/scripts.d -type f); do
|
||||
#
|
||||
scriptlist="$(find `dirname "$0"`/scripts.d -type f)"
|
||||
if [ -f .wiki-repo ]; then
|
||||
scriptlist="$(echo "$scriptlist" | grep -vE 'Makefile|PKGBUILD|pytest')"
|
||||
fi
|
||||
|
||||
for script in $scriptlist; do
|
||||
echo "Running ${script}"
|
||||
"$script"
|
||||
if [ $? -ne 0 ]; then
|
||||
|
||||
@@ -19,7 +19,7 @@ for file in `git ls-files | xargs -d '\n' -n 1 file | grep -Ev 'ASCII text|JSON|
|
||||
continue
|
||||
fi
|
||||
|
||||
if [ "$(du -k "${filename}" | awk '{ print $1; }')" -gt 10 ]; then
|
||||
if [ "$(du -k "${filename}" | awk '{ print $1; }')" -gt 250 ]; then
|
||||
echo "$file"
|
||||
result=1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user