mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
chore: add pre-push hook guard and test scene fixture
This commit is contained in:
Executable
+5
@@ -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
|
||||
Reference in New Issue
Block a user