aboutsummaryrefslogtreecommitdiff
#!/bin/sh

# This hook script prevents the user from pushing to Savannah if any of the new
# commits' OpenPGP signatures cannot be verified, or if a commit is signed
# with an unauthorized key.

# Called by "git push" after it has checked the remote status, but before
# anything has been pushed.  If this script exits with a non-zero status nothing
# will be pushed.
#
# This hook is called with the following parameters:
#
# $1 -- Name of the remote to which the push is being done
# $2 -- URL to which the push is being done
#
# If pushing without using a named remote those arguments will be equal.
#
# Information about the commits which are being pushed is supplied as lines to
# the standard input in the form:
#
#   <local ref> <local sha1> <remote ref> <remote sha1>

# This is the "empty hash" used by Git when pushing a branch deletion.
z40=0000000000000000000000000000000000000000

while read local_ref local_hash remote_ref remote_hash
do
	# When deleting a remote branch, no commits are pushed to the remote, and
	# thus there are no signatures to be verified.
	if [ "$local_hash" != $z40 ]
	then
		# Only use the hook when pushing to Savannah.
		case "$2" in
		    *.gnu.org*)
			set -e
			make check-channel-news
			exec guix git authenticate
			exit 127
			;;
		    *)
			exit 0
			;;
		esac
	fi
done

exit 0
ourtès <ludo@gnu.org> Pierre-Evariste Dagand 2023-10-11gnu: python-google-api-client: Update to 2.102.0....* gnu/packages/python-web.scm (python-google-api-client): Update to 2.102.0 (python-google-auth-httplib2): Update to 0.1.1. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Pierre-Evariste Dagand 2023-10-11gnu: Add python-google-auth-oauthlib....* gnu/packages/python-web.scm (python-google-auth-oauthlib): New variable. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Pierre-Evariste Dagand 2023-10-07gnu: python-openai: Update to 0.28.1....* gnu/packages/python-web.scm (python-openai): Update to 0.28.1. jgart 2023-10-05gnu: python-pynetbox: Update to 7.2.0....* gnu/packages/python-web.scm (python-pynetbox): Update to 7.2.0. Mathieu Othacehe 2023-10-05gnu: Add python-pynetbox....* gnu/packages/python-web.scm (python-pynetbox): New variable. Signed-off-by: Mathieu Othacehe <othacehe@gnu.org> Timotej Lazar 2023-09-22gnu: python-hyperlink: Update to 21.0.0....* gnu/packages/python-web.scm (python-hyperlink): Update to 21.0.0. [build-system]: Change to PYPROJECT-BUILD-SYSTEM. [arguments]: New field. [native-inputs]: Add PYTHON-PYTEST. Marius Bakke 2023-09-22gnu: python-uvicorn: Update to 0.23.2....* gnu/packages/python-web.scm (python-uvicorn): Update to 0.23.2. [build-system]: Switch to PYPROJECT-BUILD-SYSTEM. [arguments]: Adjust accordingly. [native-inputs]: Add PYTHON-A2WSGI and PYTHON-HATCHLING. [propagated-inputs]: Remove PYTHON-ASGIREF. Marius Bakke 2023-09-22gnu: python-websockets: Update to 11.0.3....* gnu/packages/python-web.scm (python-websockets): Update to 11.0.3. Marius Bakke 2023-09-22gnu: python-asgiref: Update to 3.7.2....* gnu/packages/python-web.scm (python-asgiref): Update to 3.7.2. [native-inputs]: Add PYTHON-MYPY. [propagated-inputs]: Add PYTHON-TYPING-EXTENSIONS. Marius Bakke 2023-09-22gnu: python-httpx: Update to 0.24.1....* gnu/packages/python-web.scm (python-httpx): Update to 0.24.1. Marius Bakke 2023-09-22gnu: Add python-aioquic....* gnu/packages/python-web.scm (python-aioquic): New variable. Marius Bakke 2023-09-22gnu: Add python-html5tagger....* gnu/packages/python-web.scm (python-html5tagger): New variable. Marius Bakke 2023-09-22gnu: Add python-a2wsgi....* gnu/packages/python-web.scm (python-a2wsgi): New variable. Marius Bakke 2023-09-22gnu: Add python-jwcrypto....* gnu/packages/python-web.scm (python-jwcrypto): New variable. Marius Bakke 2023-09-14gnu: python-requests_ntlm: Update to 1.2.0....* gnu/packages/python-web.scm (python-requests_ntlm): Update to 1.2.0. Signed-off-by: Efraim Flashner <efraim@flashner.co.il> c4droid 2023-09-02gnu: python-scrapy: Update to 2.10.1....* gnu/packages/python-web.scm (python-scrapy): Update to 2.10.1. [build-system]: Use pyproject-build-system. [arguments]: Use G-Expressions. Do not override the check phase, skip tests in #:test-flags instead. Run tests sequentially and skip fewer tests. Vinicius Monego 2023-09-02gnu: python-parsel: Update to 1.8.1....* gnu/packages/python-web.scm (python-parsel): Update to 1.8.1. [build-system]: Use pyproject-build-system. [propagated-inputs]: Add python-jmespath, python-typing-extensions. Remove python-six. [native-inputs]: Add python-psutil. Remove python-pytest-runner. Vinicius Monego 2023-09-02gnu: python-cssselect: Update to 1.2.0....* gnu/packages/python-web.scm (python-cssselect): Update to 1.2.0. [build-system]: Use pyproject-build-system. [arguments]: Do not override the check phase. Vinicius Monego 2023-09-02gnu: python-w3lib: Update to 2.1.2....* gnu/packages/python-web.scm (python-w3lib): Update to 2.1.2. [source]: Remove patch. [build-system]: Use pyproject-build-system. [arguments]: Do not override the check phase. [native-inputs]: Remove python-six. * gnu/packages/patches/python-w3lib-fix-test-failure.patch: Delete file. * gnu/local.mk (dist_patch_DATA): Remove it. Vinicius Monego 2023-08-25gnu: python-canvasapi: Propagate python-arrow....The package python-arrow is needed when importing canvasapi. * gnu/packages/python-web.scm (python-canvasapi)[native-inputs]: Move python-arrow from here... [propagated-inputs]: ...to here. John Kehayias 2023-08-25gnu: python-canvasapi: Update to 3.2.0....* gnu/packages/python-web.scm (python-canvasapi): Update to 3.2.0. [build-system]: Switch to pyproject-build-system. [native-inputs]: Add python-arrow. John Kehayias 2023-07-29gnu: hypercorn: Update to 0.14.4....* gnu/packages/python-web.scm (hypercorn): Update to 0.14.4. Vinicius Monego 2023-07-23gnu: Add python-openai....* gnu/packages/python-web.scm (python-openai): New variable. Ricardo Wurmus 2023-07-23gnu: Add python-fastapi-csrf-protect....* gnu/packages/python-web.scm (python-fastapi-csrf-protect): New variable. Ricardo Wurmus