1
Fork 0
mirror of https://https.git.savannah.gnu.org/git/guix.git/ synced 2025-07-13 18:40:57 +02:00

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 <leo@famulari.name>
Closes: #64
Change-Id: I2dd224b7a3236f7027fc702b96e3ee1ff594d4fa
This commit is contained in:
Maxim Cournoyer 2025-05-27 11:01:15 +09:00
parent c24b8fadad
commit cedb79a57b
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

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