d8d3d632f4
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> |
||
---|---|---|
.. | ||
.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-rebase.sample | ||
hooks--pre-receive.sample | ||
hooks--prepare-commit-msg.sample | ||
hooks--update.sample | ||
info--exclude | ||
Makefile | ||
this--description |