Files
web/.husky/pre-push
Joakim Jäderberg 95473927f2 Merged in chore/block-commits-on-master (pull request #3264)
chore: block commits and pushes directly on master

* chore: block commits and pushes directly on master


Approved-by: Linus Flood
Approved-by: Matilda Landström
2025-12-02 08:05:25 +00:00

7 lines
165 B
Plaintext

branch="$(git rev-parse --abbrev-ref HEAD)"
if [ "$branch" = "master" ] || [ "$branch" = "main" ]; then
echo "❌ You can't push directly to $branch"
exit 1
fi