16e5e09c2e
Merge in DNS/adguard-home from 3013-idna to master Closes #3013. Squashed commit of the following: commit 567d4c3beef3cf3ee995ad9d8c3aba6616c74c6c Author: Eugene Burkov <e.burkov@adguard.com> Date: Tue Jun 29 13:11:10 2021 +0300 client: mv punycode label commit 6585dcaece9f590d7f02afb5aa25953ab0c2555b Author: Ildar Kamalov <ik@adguard.com> Date: Tue Jun 29 12:32:40 2021 +0300 client: handle unicode name commit c0f61bfbb9bdf919be7b07c112c4b7a52f3ad6a1 Author: Eugene Burkov <e.burkov@adguard.com> Date: Mon Jun 28 20:00:57 2021 +0300 all: imp log of changes commit 41388abc8770ce164bcba327fcf0013133b5e6f7 Author: Eugene Burkov <e.burkov@adguard.com> Date: Mon Jun 28 19:52:23 2021 +0300 scripts: imp hooks commit 9c4ba933fbd9340e1de061d4f451218238650c0f Author: Eugene Burkov <e.burkov@adguard.com> Date: Mon Jun 28 19:47:27 2021 +0300 all: imp code, docs commit 61bd6d6f926480cb8c2f9bd3cd2b61e1532f71cf Author: Eugene Burkov <e.burkov@adguard.com> Date: Mon Jun 28 16:09:25 2021 +0300 querylog: add ascii hostname, convert to unicode
33 lines
792 B
Bash
Executable File
33 lines
792 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e -f -u
|
|
|
|
# Show all temporary todos to the programmer but don't fail the commit
|
|
# if there are any, because the commit could be in a temporary branch.
|
|
git grep -e 'TODO.*!!' -- ':!HACKING.md' ':!scripts/hooks/pre-commit' | cat || :
|
|
|
|
if [ "$( git diff --cached --name-only -- 'client/*.js' )" ]
|
|
then
|
|
make js-lint js-test
|
|
fi
|
|
|
|
if [ "$( git diff --cached --name-only -- 'client2/*.js' 'client2/*.ts' 'client2/*.tsx' )" ]
|
|
then
|
|
make js-beta-lint js-beta-test
|
|
fi
|
|
|
|
if [ "$( git diff --cached --name-only -- '*.go' '*.mod' '*.sh' 'Makefile' )" ]
|
|
then
|
|
make go-os-check go-lint go-test
|
|
fi
|
|
|
|
if [ "$( git diff --cached --name-only -- '*.md' '*.yaml' '*.yml' )" ]
|
|
then
|
|
make txt-lint
|
|
fi
|
|
|
|
if [ "$( git diff --cached --name-only -- './openapi/openapi.yaml' )" ]
|
|
then
|
|
make openapi-lint
|
|
fi
|