chore: add pre-commit hook to forbid committing root-level Go binaries
Build and Publish / BuildAndDeploy (push) Failing after 6s
Build and Publish / BuildAndDeploy (push) Failing after 6s
This commit is contained in:
1 parent
ef80e1745f
commit
c2adf87d54
2 files changed
+61
No files matched your search
@@ -0,0 +1,11 @@
|
||||
|
||||
|
||||
# ━━━ Pre-commit hook (forbid root binaries) ━━━
|
||||
.PHONY: install-hooks
|
||||
install-hooks:
|
||||
@if [ "$$(git config core.hooksPath 2>/dev/null)" != "hooks/" ]; then \
|
||||
git config core.hooksPath hooks/; \
|
||||
echo "Configured git core.hooksPath=hooks/"; \
|
||||
fi
|
||||
@chmod +x hooks/pre-commit
|
||||
@echo "Pre-commit hook installed. (Bypass with: git commit --no-verify)"
|
||||
Reference in new issue
Block a user