Former-commit-id: 3113c86f8c
pull/1161/head
Piero Toffanin 2020-09-14 14:09:29 +00:00
rodzic 572f8bbd11
commit aa7ec13c20
4 zmienionych plików z 0 dodań i 25 usunięć

Wyświetl plik

@ -1,23 +0,0 @@
#!/bin/sh
#
# An example hook script to verify what is about to be committed.
# Called by "git commit" with no arguments. The hook should
# exit with non-zero status after issuing an appropriate message if
# it wants to stop the commit.
#
# To enable this hook, rename this file to "pre-commit".
exec 1>&2
echo "RUNNING PRE-COMMIT"
EXIT_CODE=0
# Get list of files about to be committed
if git diff --cached --name-only --diff-filter=ACM | grep 'ccd_defs.json'; then
echo "We changed ccd_defs.json"
GIT_ROOT=$(git rev-parse --show-toplevel)
python $GIT_ROOT/ccd_defs_check.py
EXIT_CODE=$(echo $?)
fi
# non-zero exit fails the commit
exit $EXIT_CODE

Wyświetl plik

@ -1 +0,0 @@
305acb70d8d2c350a8374fbb5028d914facf3fa4

Plik binarny nie jest wyświetlany.

Przed

Szerokość:  |  Wysokość:  |  Rozmiar: 27 KiB

Wyświetl plik

@ -1 +0,0 @@
de3d398070f83430c950ae84845fd85b504b5452