[security]
[..]
DISABLE_GIT_HOOKS = false
/application/codeRepository/data/gitea-repositories/mbiolance-it/admin-doc.git/hooks/my-script,sh
#!/bin/bash
cd /application/php/doc/detection
echo `pwd` > /application/php/doc/detection/abc.txt
unset GIT_DIR
git pull
git pull不执行需要添加
unset GIT_DIR
stackoverflow
https://gitee.com/bioinfoFungi/bioinfo_document