Files
rk35xx-android14/external/nullaway/config/hooks/pre-commit-stub
T
hmz007 36ed224bac Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a)
Signed-off-by: hmz007 <hmz007@gmail.com>
Change-Id: Ib87fdbe7a0be7dc961af3500fe9ea4589a127f9f
2024-10-29 18:12:02 +08:00

16 lines
358 B
Bash
Executable File

#!/usr/bin/env bash
# stub pre-commit hook
# just a runner for the real pre-commit script
# if script cannot be found, exit without error
# (to not block local commits)
set -e
REPO_ROOT_DIR="$(git rev-parse --show-toplevel)"
PRE_COMMIT_SCRIPT="${REPO_ROOT_DIR}/config/hooks/pre-commit"
if [ -f $PRE_COMMIT_SCRIPT ]; then
source $PRE_COMMIT_SCRIPT
fi