kernel: synchronize autoreview script to 6.12 [1/1]

PD#SWPL-197154

Problem:
synchronize autoreview script to 6.12

Solution:
synchronize autoreview script to 6.12

Verify:
git commit

Test:
git commit

Change-Id: I3d3007f4c5b5a3ef552a3faf206013466e87a980
Signed-off-by: pengzhao.liu <pengzhao.liu@amlogic.com>
This commit is contained in:
pengzhao.liu
2024-12-19 05:50:40 +00:00
committed by gerrit autosubmit
parent 5d3eb012ab
commit 20d74be65f
+8 -4
View File
@@ -108,10 +108,14 @@ function read_ext_module_config() {
}
function copy_pre_commit(){
if [[ -d ${KERNEL_DIR}/${COMMON_DRIVERS_DIR}/.git/hooks/ ]]; then
if [[ ! -f ${KERNEL_DIR}/${COMMON_DRIVERS_DIR}/.git/hooks/pre-commit ]]; then
cp ${KERNEL_DIR}/${COMMON_DRIVERS_DIR}/scripts/amlogic/pre-commit ${KERNEL_DIR}/${COMMON_DRIVERS_DIR}/.git/hooks/pre-commit
chmod +x ${KERNEL_DIR}/${COMMON_DRIVERS_DIR}/.git/hooks/pre-commit
if [[ -d ${COMMON_DRIVERS_DIR}/.git/hooks/ ]]; then
if [[ ! -f $${COMMON_DRIVERS_DIR}/.git/hooks/pre-commit ]]; then
cp ${COMMON_DRIVERS_DIR}/scripts/amlogic/pre-commit \
${COMMON_DRIVERS_DIR}/.git/hooks/pre-commit
cp ${KERNEL_DIR}/scripts/amlogic/pre-commit \
${KERNEL_DIR}/.git/hooks/pre-commit
chmod +x ${COMMON_DRIVERS_DIR}/.git/hooks/pre-commit
chmod +x ${KERNEL_DIR}/.git/hooks/pre-commit
fi
fi
}