From 3f2f6972adfe6354cf0a416799292f53e10026f1 Mon Sep 17 00:00:00 2001 From: Colin McMillen Date: Sat, 21 Nov 2020 03:35:11 +0000 Subject: [PATCH] --- git-hooks.md | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/git-hooks.md b/git-hooks.md index 62322b7..573ce36 100644 --- a/git-hooks.md +++ b/git-hooks.md @@ -2,15 +2,11 @@ Put the following in `.git/hooks/pre-commit`: ```shell #!/bin/sh - -for file in $(git status --porcelain --untracked=all | cut -b 4- | grep "\.png$") ; do pngcrush -brute -ow $file; done +tools/scripts/lint.py || exit 1 ``` -And in `.git/modules/public/hooks/pre-commit`: - +And in `Content/.git/hooks/pre-commit`: ```shell #!/bin/sh - -tools/scripts/lint.py || exit 1 -dotnet test SharedTests/SharedTests.csproj || exit 1 +for file in $(git status --porcelain --untracked=all | cut -b 4- | grep "\.png$") ; do pngcrush -brute -ow $file; done ``` \ No newline at end of file