mirror of
https://github.com/storytold/AniCraft.git
synced 2026-11-19 09:01:29 +01:00
AniCraft 0.1.0 (early alpha): milestones M0 and M1. Contributors are credited in AUTHORS.md.
11 lines
452 B
Bash
Executable File
11 lines
452 B
Bash
Executable File
#!/bin/sh
|
|
# AniCraft: `main` changes only through pull requests (docs/release.md, "How changes land").
|
|
# Work on a topic branch: git switch -c feat/<name>
|
|
branch=$(git symbolic-ref --short -q HEAD)
|
|
if [ "$branch" = "main" ] && [ "$ANICRAFT_ALLOW_MAIN_COMMIT" != "1" ]; then
|
|
echo "AniCraft: commit blocked - main changes only through pull requests." >&2
|
|
echo " Start a topic branch first: git switch -c feat/<name>" >&2
|
|
exit 1
|
|
fi
|
|
exit 0
|