Files
go-order-manager/Makefile
T
mats c2adf87d54
Build and Publish / BuildAndDeploy (push) Failing after 6s
chore: add pre-commit hook to forbid committing root-level Go binaries
2026-07-25 16:39:32 +02:00

12 lines
366 B
Makefile

# ━━━ 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)"