index : devtools32 | |
Archlinux32 fork of devtools | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | src/commitpkg.in | 4 |
diff --git a/src/commitpkg.in b/src/commitpkg.in index d57b30c..9186378 100644 --- a/src/commitpkg.in +++ b/src/commitpkg.in @@ -54,6 +54,10 @@ if [[ ! -f PKGBUILD ]]; then die 'No PKGBUILD file' fi +if [[ "$(git symbolic-ref --short HEAD)" != main ]]; then + die 'must be run from the main branch' +fi + source=() # shellcheck source=contrib/makepkg/PKGBUILD.proto . ./PKGBUILD |