gnu: Add armips.
[jackhill/guix/guix.git] / etc / git / pre-push
CommitLineData
69355e12
LF
1#!/bin/sh
2
6f6758c4
LC
3# This hook script prevents the user from pushing to Savannah if any of the new
4# commits' OpenPGP signatures cannot be verified, or if a commit is signed
5# with an unauthorized key.
69355e12
LF
6
7# Called by "git push" after it has checked the remote status, but before
8# anything has been pushed. If this script exits with a non-zero status nothing
9# will be pushed.
10#
11# This hook is called with the following parameters:
12#
13# $1 -- Name of the remote to which the push is being done
14# $2 -- URL to which the push is being done
15#
16# If pushing without using a named remote those arguments will be equal.
17#
18# Information about the commits which are being pushed is supplied as lines to
19# the standard input in the form:
20#
21# <local ref> <local sha1> <remote ref> <remote sha1>
22
69355e12
LF
23# Only use the hook when pushing to Savannah.
24case "$2" in
e65a4464
LC
25 *.gnu.org*)
26 exec make authenticate check-channel-news
27 exit 127
69355e12 28 ;;
e65a4464 29 *)
69355e12
LF
30 exit 0
31 ;;
32esac