mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-26 18:26:23 +00:00
update
This commit is contained in:
13
luban_examples/githooks-demo/pre-commit
Normal file
13
luban_examples/githooks-demo/pre-commit
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
# 注意 git hook 默认运行位置在 Config 文件夹下
|
||||
|
||||
./auto_validation.sh
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "当前配置有错误, 请修复错误再进行推送!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# accept
|
||||
exit 0
|
Reference in New Issue
Block a user