* Extract SAML logic into its own file * Remove saml.rs core logic * hello * Add substitute_ee_code.sh and check_no_symlink.sh scripts * dry-run docker image build * test hook * add setup-hooks.sh script * Update pre-commit hook * Update substitution script * revert docker-image action yaml * revert Cargo.lock * publish custom image * swap for ce build as well * empty * revert temp action override * fix docker-image.yml
15 lines
559 B
Bash
Executable File
15 lines
559 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# This file is symlinked to local .git/hooks/pre-commit by the setup-hooks.sh script
|
|
# It wil run before every commit, so it needs to be quick and efficient. If it returns
|
|
# a non-zero exit code, the commit will be aborted.
|
|
|
|
echo "Running pre-commit hook"
|
|
|
|
# This checks that there is no symlinks in the backend directory among the EE files
|
|
./backend/check_no_symlink.sh > /dev/null
|
|
if [ $? -ne 0 ]; then
|
|
echo "/!\ Symlinks detected in the backend directory. Please run './backend/substitute_ee_code.sh --revert' before committing."
|
|
exit 1
|
|
fi
|