index : devtools32 | |
Archlinux32 fork of devtools | gitolite user |
summaryrefslogtreecommitdiff |
author | Levente Polyak <anthraxx@archlinux.org> | 2023-06-11 23:31:18 +0200 |
---|---|---|
committer | Levente Polyak <anthraxx@archlinux.org> | 2023-12-19 20:06:26 +0100 |
commit | d00a2b989044fe452792e108a15b6c901a1a1d4c (patch) | |
tree | 03206fb052b24ffeadf02251264aade56065d310 /src/commitpkg.in | |
parent | c2d73d73aec9c21ffdb0677a7e3ef96a42c1ba47 (diff) |
-rw-r--r-- | src/commitpkg.in | 6 |
diff --git a/src/commitpkg.in b/src/commitpkg.in index 6d4b014..016ab22 100644 --- a/src/commitpkg.in +++ b/src/commitpkg.in @@ -71,6 +71,12 @@ if ! repo_spec=$(git config --local devtools.version) || [[ ${repo_spec} != "${G exit 1 fi +if ! repo_variant=$(git config --local devtools.variant) || [[ ${repo_variant} != canonical ]]; then + error "cannot release from a repository with none canonical specs (%s), try:" "${repo_variant:-development}" + msg2 'pkgctl repo configure' + exit 1 +fi + if [[ "$(git symbolic-ref --short HEAD)" != main ]]; then die 'must be run from the main branch' fi |