mirror of
https://github.com/ben-grande/qusal.git
synced 2025-07-30 09:48:51 -04:00
feat: verify commit signature before push
Check commit signature and if it fails, check if any signed tags associated with commit exist from a keyring that can be found only locally. For: https://github.com/ben-grande/qusal/issues/105
This commit is contained in:
parent
efe0fa6ac7
commit
8fbd9a063c
7 changed files with 139 additions and 4 deletions
|
@ -21,7 +21,7 @@ esac
|
|||
## update on save.
|
||||
if ! vim -e -c 'setf markdown' -c 'if !exists(":GenTocGFM") | cq | endif' -c q
|
||||
then
|
||||
err_msg="Error: Vim Plugin mzlogin/vim-markdown-toc isn't installed."
|
||||
err_msg="error: Vim Plugin mzlogin/vim-markdown-toc isn't installed."
|
||||
printf '%s\n' "${err_msg}" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
@ -29,7 +29,7 @@ fi
|
|||
|
||||
for f in "${@}"; do
|
||||
if ! test -f "${f}"; then
|
||||
printf '%s\n' "Error: Not a regular file: ${f}" >&2
|
||||
printf '%s\n' "error: Not a regular file: ${f}" >&2
|
||||
exit 1
|
||||
fi
|
||||
if ! grep -q -e "^## Table of Contents$" -- "${f}"; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue