kopia lustrzana https://github.com/OpenDroneMap/ODM
rodzic
572f8bbd11
commit
aa7ec13c20
|
@ -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
|
|
|
@ -1 +0,0 @@
|
||||||
305acb70d8d2c350a8374fbb5028d914facf3fa4
|
|
Plik binarny nie jest wyświetlany.
Przed Szerokość: | Wysokość: | Rozmiar: 27 KiB |
|
@ -1 +0,0 @@
|
||||||
de3d398070f83430c950ae84845fd85b504b5452
|
|
Ładowanie…
Reference in New Issue