diff options
author | Denton Liu <liu.denton@gmail.com> | 2020-09-23 02:38:45 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-09-23 09:31:45 -0700 |
commit | d8d3d632f4165955da49032d50279c20cfbde2e5 (patch) | |
tree | f206f463125c801a970ba2c0796a4f2e5bb461da /t/t7602-merge-octopus-many.sh | |
parent | hooks--pre-push.sample: use hash-agnostic zero OID (diff) | |
download | tgif-d8d3d632f4165955da49032d50279c20cfbde2e5.tar.xz |
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>
Diffstat (limited to 't/t7602-merge-octopus-many.sh')
0 files changed, 0 insertions, 0 deletions