guix_mirror_bot pushed a commit to branch master
in repository guix.

commit cedb79a57b51b5e82bfb696b5801f6ee72407da2
Author: Maxim Cournoyer <[email protected]>
AuthorDate: Tue May 27 11:01:15 2025 +0900

    etc: pre-push: Do not use recent ;& case statement terminator.
    
    Some systems are still using a shell that predates its inclusion in the 
POSIX
    specification, such as Debian Bookworm.
    
    * etc/git/pre-push (z40): Remove usage of ';&'.  Fail when attempting to 
push
    to Savannah instead.
    
    Reported-by: Leo Famulari <[email protected]>
    Closes: #64
    Change-Id: I2dd224b7a3236f7027fc702b96e3ee1ff594d4fa
---
 etc/git/pre-push | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/etc/git/pre-push b/etc/git/pre-push
index 64d6903ae4..c22dd06421 100755
--- a/etc/git/pre-push
+++ b/etc/git/pre-push
@@ -38,7 +38,10 @@ do
 
                 # Only use the hook when pushing to upstream.
                 case "$2" in
-                    *.gnu.org*) ;&
+                    *.gnu.org*)
+                        echo "adjust remote: repo was migrated to codeberg"
+                        exit 127
+                        ;;
                     *codeberg.org/guix/*)
                         set -e
                         guix git authenticate

Reply via email to