Files
Roo-Code/.husky/pre-commit
2024-12-10 13:33:35 -08:00

9 lines
187 B
Plaintext

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