PHP 8.2.30
Preview: pre-receive.sample Size: 544 B
/proc/thread-self/root/proc/self/root/proc/self/root/usr/share/git-core/templates/hooks/pre-receive.sample

#!/bin/sh
#
# An example hook script to make use of push options.
# The example simply echoes all push options that start with 'echoback='
# and rejects all pushes when the "reject" push option is used.
#
# To enable this hook, rename this file to "pre-receive".

if test -n "$GIT_PUSH_OPTION_COUNT"
then
	i=0
	while test "$i" -lt "$GIT_PUSH_OPTION_COUNT"
	do
		eval "value=\$GIT_PUSH_OPTION_$i"
		case "$value" in
		echoback=*)
			echo "echo from the pre-receive-hook: ${value#*=}" >&2
			;;
		reject)
			exit 1
		esac
		i=$((i + 1))
	done
fi

Directory Contents

Dirs: 0 × Files: 14

Name Size Perms Modified Actions
478 B lrwxr-xr-x 2025-07-23 06:59:38
Edit Download
896 B lrwxr-xr-x 2025-07-23 06:59:38
Edit Download
4.62 KB lrwxr-xr-x 2025-07-23 06:59:38
Edit Download
189 B lrwxr-xr-x 2025-07-23 06:59:38
Edit Download
424 B lrwxr-xr-x 2025-07-23 06:59:39
Edit Download
1.61 KB lrwxr-xr-x 2025-07-23 06:59:39
Edit Download
416 B lrwxr-xr-x 2025-07-23 06:59:39
Edit Download
1.34 KB lrwxr-xr-x 2025-07-23 06:59:39
Edit Download
4.78 KB lrwxr-xr-x 2025-07-23 06:59:39
Edit Download
544 B lrwxr-xr-x 2025-07-23 06:59:39
Edit Download
1.46 KB lrwxr-xr-x 2025-07-23 06:59:39
Edit Download
2.72 KB lrwxr-xr-x 2025-07-23 06:59:39
Edit Download
2.25 KB lrwxr-xr-x 2025-07-23 06:59:39
Edit Download
3.56 KB lrwxr-xr-x 2025-07-23 06:59:39
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).