1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-06 21:20:33 +02:00

etc: pre-push: Skip checks on AGit pull requests.

* etc/git/pre-push (case "$remote_refs" in refs/for/*): Skip checks.

Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
Fixes: AGit push fails <https://codeberg.org/guix/guix/issues/5>
Tested-by: Hilton Chain <hako@ultrarare.space>
Signed-off-by: Hilton Chain <hako@ultrarare.space>
This commit is contained in:
Liliana Marie Prikler
2025-05-25 17:20:36 +02:00
committed by Hilton Chain
parent 8589191060
commit be0dbd3e4a

View File

@@ -29,6 +29,13 @@ do
# thus there are no signatures to be verified.
if [ "$local_hash" != $z40 ]
then
# Skip the hook when performing a pull-request.
case "$remote_ref" in
refs/for/*)
exit 0
;;
esac
# Only use the hook when pushing to upstream.
case "$2" in
*.gnu.org*) ;&