mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2026-10-27 23:26:48 +09:00
* all: upd go; upd tools; upd chlog; upd scripts and hooks; * make: fix script; * make: fix script; * make: upd docs; add todos; * make: fix go-test;
30 lines
686 B
Bash
Executable File
30 lines
686 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# This comment is used to simplify checking local copies of the script. Bump
|
|
# this number every time a significant change is made to this script.
|
|
#
|
|
# AdGuard-Project-Version: 7
|
|
|
|
set -e -f -o 'pipefail' -u
|
|
|
|
. ./scripts/hooks/helper.sh
|
|
|
|
# Warn the programmer about temporary todos and skel FIXMEs, but do not fail the
|
|
# commit, because the commit could be in a temporary branch.
|
|
temp_todos="$(
|
|
git grep -e 'FIXME' -e 'TODO.*!!' -- \
|
|
':!./scripts/hooks/pre-commit' \
|
|
':!./client' \
|
|
|| :
|
|
)"
|
|
readonly temp_todos
|
|
|
|
if [ "$temp_todos" != '' ]; then
|
|
printf 'WARNING: you have temporary todos:\n\n%s\n\n' "$temp_todos"
|
|
prompt
|
|
fi
|
|
|
|
check_unstaged_changes
|
|
|
|
lint_staged_changes
|