Explanatory comment on master branch check
This commit is contained in:
parent
7368c9364d
commit
8e1e3e117d
|
@ -17,6 +17,7 @@
|
|||
branch="$(git rev-parse --abbrev-ref HEAD)"
|
||||
|
||||
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"
|
||||
exit 1
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue