Explanatory comment on master branch check

This commit is contained in:
Sage Vaillancourt 2024-03-27 11:39:41 -04:00
parent 7368c9364d
commit 8e1e3e117d
1 changed files with 1 additions and 0 deletions

View File

@ -17,6 +17,7 @@
branch="$(git rev-parse --abbrev-ref HEAD)" branch="$(git rev-parse --abbrev-ref HEAD)"
if [ "$branch" = "master" ]; then if [ "$branch" = "master" ]; then
# I've assumed that personal repos (where I might care less about PRs and such) will use main instead of master
echo "You can't commit directly to master branch" echo "You can't commit directly to master branch"
exit 1 exit 1
fi fi