guanghu-ice-heart/.githooks/post-commit

8 lines
518 B
Shell
Executable file

#!/bin/sh
canonical='/Volumes/JZAO/HoloLake/persona-runtime/repo-012-main'
current=$(git rev-parse --show-toplevel 2>/dev/null) || exit 0
[ "$current" = "$canonical" ] || exit 0
if /usr/bin/python3 "$canonical/server-tools/tcs-mother-root-agent/tcs_mother_root_agent.py" refresh --repo "$canonical" --trigger git-post-commit >/dev/null 2>&1; then
/usr/bin/python3 "$canonical/server-tools/fifth-domain-lighthouse-mirror/public_mirror_agent.py" sync-architecture --repo "$canonical" >/dev/null 2>&1 || true
fi
exit 0