Skip to content
Snippets Groups Projects
Commit 69fad2a2 authored by Virgile Prevosto's avatar Virgile Prevosto
Browse files

[git-hook] Use git to retrieve root path

parent 7842b514
No related branches found
No related tags found
No related merge requests found
...@@ -23,8 +23,8 @@ ...@@ -23,8 +23,8 @@
# Example of installation of this pre-commit hook (client side): # Example of installation of this pre-commit hook (client side):
# - (cd .git/hooks/ && ln -s ../../dev/git-hooks/pre-commit.sh pre-commit) # - (cd .git/hooks/ && ln -s ../../dev/git-hooks/pre-commit.sh pre-commit)
# Note: if you decide to copy the file, the `SCRIPT_DIR` variable must be
# fixed accordingly. ROOT=$(git rev-parse --show-toplevel)
echo "Pre-commit Hook..." echo "Pre-commit Hook..."
...@@ -36,5 +36,4 @@ then ...@@ -36,5 +36,4 @@ then
exit 0 exit 0
fi fi
SCRIPT_DIR=$(dirname -- "$( readlink -f -- "$0"; )") "$ROOT/dev/check-files.sh" -c || exit 1
"$SCRIPT_DIR/../check-files.sh" -c || exit 1
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment