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:
+5
-1
@@ -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
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user