1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-05-24 10:01:47 +02:00

etc: Git pre-push hook: Don't allow pushes to Savannah.

* etc/git/pre-push: Throw an error when pushing to savannah.gnu.org.

Change-Id: I1fefa4d93daf0f2887168c54a244b9be5d220665
This commit is contained in:
Leo Famulari
2025-06-05 17:15:21 -04:00
parent 525d8a1a60
commit 69a77ffab2
+5 -1
View File
@@ -45,8 +45,12 @@ do
;;
esac
# Only use the hook when pushing to upstream.
# Only perform checks when pushing to upstream.
case "$2" in
*savannah.gnu.org*)
printf "ERROR: The repositories on Savannah are read-only mirrors of our repos at <https://codeberg.org/guix>.\n" 1>&2
exit 1
;;
*.gnu.org*)
perform_checks
;;