git/templates
Denton Liu d8d3d632f4 hooks--update.sample: use hash-agnostic zero OID
The update sample hook has the zero OID hardcoded as 40 zeros. However,
with the introduction of SHA-256 support, this assumption no longer
holds true. Replace the hardcoded $z40 with a call to

	git hash-object --stdin </dev/null | tr '[0-9a-f]' '0'

so the sample hook becomes hash-agnostic.

Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2020-09-23 09:31:45 -07:00
..
.gitignore
branches--
hooks--applypatch-msg.sample
hooks--commit-msg.sample
hooks--fsmonitor-watchman.sample
hooks--post-update.sample
hooks--pre-applypatch.sample
hooks--pre-commit.sample
hooks--pre-merge-commit.sample
hooks--pre-push.sample hooks--pre-push.sample: use hash-agnostic zero OID 2020-09-23 09:31:45 -07:00
hooks--pre-rebase.sample
hooks--pre-receive.sample
hooks--prepare-commit-msg.sample
hooks--update.sample hooks--update.sample: use hash-agnostic zero OID 2020-09-23 09:31:45 -07:00
info--exclude
Makefile
this--description