chore: add pre-push hook guard and test scene fixture

This commit is contained in:
SnapOtter
2026-05-18 10:20:12 +08:00
parent 398f65cd3f
commit 475af753bf
2 changed files with 5 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
if git diff --cached --name-only HEAD@{1}..HEAD 2>/dev/null | grep -q "^\.local-wiki/" || \
git log --name-only --pretty=format: @{u}..HEAD 2>/dev/null | grep -q "^\.local-wiki/"; then
echo "ERROR: .local-wiki/ files detected in push. This directory is private and must never be pushed."
exit 1
fi