Source identity
| Field | Recorded value |
|---|---|
| Source type | archive member |
| Original record | pre-push.sample |
| Date | Not specified in source |
| Path or archive member | archives/libsrc-1c3f88063121/NETLIFY_AI_RECOVERY_2026-10-14_21-10-49/sites/janady13__thataicharity__cb026434-ade6-4dd2-8128-95a84f61373d/source/charityOnMe.git/hooks/pre-push.sample |
| Original SHA-256 | ecce9c7e04d3f5dd9d8ada81753dd1d549a9634b26770042b58dda00217d086a |
| Reading-copy SHA-256 | ecce9c7e04d3f5dd9d8ada81753dd1d549a9634b26770042b58dda00217d086a |
| Archive source | {"sourceId": "libsrc-1c3f88063121", "member": "NETLIFY_AI_RECOVERY_2026-10-14_21-10-49/sites/janady13__thataicharity__cb026434-ade6-4dd2-8128-95a84f61373d/source/charityOnMe.git/hooks/pre-push.sample"} |
Every recorded occurrence
These 3 records contain identical original source bytes. Their paths and revisions remain part of the archive.
| Original record | Branch or archive | Revision / identifier | Original location |
|---|---|---|---|
| pre-push.sample | {"sourceId": "libsrc-1c3f88063121", "member": "NETLIFY_AI_RECOVERY_2026-10-14_21-10-49/sites/janady13__thataicharity__cb026434-ade6-4dd2-8128-95a84f61373d/source/charityOnMe.git/hooks/pre-push.sample"} | libsrc-96646e051979 | archives/libsrc-1c3f88063121/NETLIFY_AI_RECOVERY_2026-10-14_21-10-49/sites/janady13__thataicharity__cb026434-ade6-4dd2-8128-95a84f61373d/source/charityOnMe.git/hooks/pre-push.sample |
| pre-push.sample | {"sourceId": "libsrc-1c3f88063121", "member": "NETLIFY_AI_RECOVERY_2026-10-14_21-10-49/sites/janady13__hive-agi-thataiguy-v2__647e6ba4-a5f9-4e51-8426-c8c4a569bdfe/source/thataiguy-org-website.git/hooks/pre-push.sample"} | libsrc-2fcd9324438e | archives/libsrc-1c3f88063121/NETLIFY_AI_RECOVERY_2026-10-14_21-10-49/sites/janady13__hive-agi-thataiguy-v2__647e6ba4-a5f9-4e51-8426-c8c4a569bdfe/source/thataiguy-org-website.git/hooks/pre-push.sample |
| pre-push.sample | {"sourceId": "libsrc-1c3f88063121", "member": "NETLIFY_AI_RECOVERY_2026-10-14_21-10-49/sites/janady13__hive-agi-thataiguy-v1__f4ea558a-14c1-4a71-babf-72a96517faec/source/thataiguy-org-website.git/hooks/pre-push.sample"} | libsrc-659b5a81f4b0 | archives/libsrc-1c3f88063121/NETLIFY_AI_RECOVERY_2026-10-14_21-10-49/sites/janady13__hive-agi-thataiguy-v1__f4ea558a-14c1-4a71-babf-72a96517faec/source/thataiguy-org-website.git/hooks/pre-push.sample |
Recovered source transcript
Download complete source text ↓54 lines · 1.3 KB
#!/bin/sh
# An example hook script to verify what is about to be pushed. Called by "git
# push" after it has checked the remote status, but before anything has been
# pushed. If this script exits with a non-zero status nothing will be pushed.
#
# This hook is called with the following parameters:
#
# $1 -- Name of the remote to which the push is being done
# $2 -- URL to which the push is being done
#
# If pushing without using a named remote those arguments will be equal.
#
# Information about the commits which are being pushed is supplied as lines to
# the standard input in the form:
#
# <local ref> <local oid> <remote ref> <remote oid>
#
# This sample shows how to prevent push of commits where the log message starts
# with "WIP" (work in progress).
remote="$1"
url="$2"
zero=$(git hash-object --stdin </dev/null | tr '[0-9a-f]' '0')
while read local_ref local_oid remote_ref remote_oid
do
if test "$local_oid" = "$zero"
then
# Handle delete
:
else
if test "$remote_oid" = "$zero"
then
# New branch, examine all commits
range="$local_oid"
else
# Update to existing branch, examine new commits
range="$remote_oid..$local_oid"
fi
# Check for WIP commit
commit=$(git rev-list -n 1 --grep '^WIP' "$range")
if test -n "$commit"
then
echo >&2 "Found WIP commit in $local_ref, not pushing"
exit 1
fi
fi
done
exit 0