Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/commitpkg.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/commitpkg.in b/src/commitpkg.in
index 5f29881..7573d9b 100644
--- a/src/commitpkg.in
+++ b/src/commitpkg.in
@@ -64,6 +64,12 @@ if [[ ! -f PKGBUILD ]]; then
die 'No PKGBUILD file'
fi
+if ! repo_spec=$(git config --local devtools.version) || [[ ${repo_spec} != "${GIT_REPO_SPEC_VERSION}" ]]; then
+ error "repository specs are out of date, try:"
+ msg2 'pkgctl repo configure'
+ exit 1
+fi
+
if [[ "$(git symbolic-ref --short HEAD)" != main ]]; then
die 'must be run from the main branch'
fi