mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-04-06 21:20:33 +02:00
etc: Untabify pre-push hook.
There was a mix of spaces and tabs in the file, even confusing Emacs's dtrt-indent-mode. * etc/git/pre-push: Untabify. Change-Id: I2548a3901c5064c649a8f6bb786d606b6155fcfb
This commit is contained in:
@@ -25,31 +25,31 @@ z40=0000000000000000000000000000000000000000
|
||||
|
||||
while read local_ref local_hash remote_ref remote_hash
|
||||
do
|
||||
# When deleting a remote branch, no commits are pushed to the remote, and
|
||||
# thus there are no signatures to be verified.
|
||||
if [ "$local_hash" != $z40 ]
|
||||
then
|
||||
# Skip the hook when performing a pull-request.
|
||||
case "$remote_ref" in
|
||||
refs/for/*)
|
||||
exit 0
|
||||
;;
|
||||
esac
|
||||
# When deleting a remote branch, no commits are pushed to the remote, and
|
||||
# thus there are no signatures to be verified.
|
||||
if [ "$local_hash" != $z40 ]
|
||||
then
|
||||
# Skip the hook when performing a pull-request.
|
||||
case "$remote_ref" in
|
||||
refs/for/*)
|
||||
exit 0
|
||||
;;
|
||||
esac
|
||||
|
||||
# Only use the hook when pushing to upstream.
|
||||
case "$2" in
|
||||
*.gnu.org*) ;&
|
||||
*codeberg.org/guix/*)
|
||||
set -e
|
||||
guix git authenticate
|
||||
exec make check-channel-news
|
||||
exit 127
|
||||
;;
|
||||
*)
|
||||
exit 0
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
# Only use the hook when pushing to upstream.
|
||||
case "$2" in
|
||||
*.gnu.org*) ;&
|
||||
*codeberg.org/guix/*)
|
||||
set -e
|
||||
guix git authenticate
|
||||
exec make check-channel-news
|
||||
exit 127
|
||||
;;
|
||||
*)
|
||||
exit 0
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
done
|
||||
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user