Allow running of bumptag with out signed commits or tags
By setting ALLOW_UNSIGNED_COMMITS_WITHOUT_TAGS you can bootstrap bumptag on first startup of new repo
This commit is contained in:
parent
ecedda68e3
commit
cacb97a22c
15
bump-tag
15
bump-tag
|
@ -173,12 +173,15 @@ tag_list="$(git tag -l "${tagpfx}-*")"
|
||||||
# shellcheck disable=SC2181
|
# shellcheck disable=SC2181
|
||||||
if [[ ${?} -ne 0 ]] || [[ -z "${tag_list}" ]]; then
|
if [[ ${?} -ne 0 ]] || [[ -z "${tag_list}" ]]; then
|
||||||
|
|
||||||
echo "No tags found, verifying all commits instead."
|
if [[ -z ${ALLOW_UNSIGNED_COMMITS_WITHOUT_TAGS} ]]; then
|
||||||
# %H = commit hash
|
echo "No tags found, verifying all commits instead."
|
||||||
# %G? = show "G" for a good (valid) signature
|
echo "Please set environment variable ALLOW_UNSIGNED_COMMITS_WITHOUT_TAGS if you want to disable this check."
|
||||||
git_log="$(git log --pretty="format:%H${t}%G?" \
|
# %H = commit hash
|
||||||
--first-parent \
|
# %G? = show "G" for a good (valid) signature
|
||||||
| grep -v "${t}G$")"
|
git_log="$(git log --pretty="format:%H${t}%G?" \
|
||||||
|
--first-parent \
|
||||||
|
| grep -v "${t}G$")"
|
||||||
|
fi
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue