Roo-Code/.husky/pre-commit
2025-05-12 11:38:02 -07:00

8 lines
176 B
Text
Executable file

branch="$(git rev-parse --abbrev-ref HEAD)"
if [ "$branch" = "main" ]; then
echo "You can't push directly to main - please check out a branch."
exit 1
fi
npx lint-staged