summaryrefslogtreecommitdiff
path: root/etc/git
diff options
context:
space:
mode:
authorlilyp <liliana.prikler@gmail.com>2025-05-25 15:15:17 +0200
committerHilton Chain <hako@ultrarare.space>2025-05-26 10:41:05 +0800
commit85891910603a9369f47ac0e127f8f03c46160cc1 (patch)
treed1e1a6b74385067916ca9446740844ae216ece9b /etc/git
parent83e107673fb32b4965c60fa432321c85822ff065 (diff)
etc: pre-push: Enforce checks on Codeberg.
* etc/git/pre-push (case *gnu.org*): Fall-through to… (case *codeberg.org/guix/*): … this. Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com> Tested-by: Hilton Chain <hako@ultrarare.space> Signed-off-by: Hilton Chain <hako@ultrarare.space>
Diffstat (limited to 'etc/git')
-rwxr-xr-xetc/git/pre-push5
1 files changed, 3 insertions, 2 deletions
diff --git a/etc/git/pre-push b/etc/git/pre-push
index d0e2cff9d3b..400095591cd 100755
--- a/etc/git/pre-push
+++ b/etc/git/pre-push
@@ -29,9 +29,10 @@ do
29 # thus there are no signatures to be verified. 29 # thus there are no signatures to be verified.
30 if [ "$local_hash" != $z40 ] 30 if [ "$local_hash" != $z40 ]
31 then 31 then
32 # Only use the hook when pushing to Savannah. 32 # Only use the hook when pushing to upstream.
33 case "$2" in 33 case "$2" in
34 *.gnu.org*) 34 *.gnu.org*) ;&
35 *codeberg.org/guix/*)
35 set -e 36 set -e
36 guix git authenticate 37 guix git authenticate
37 exec make check-channel-news 38 exec make check-channel-news