Update shell scripts to compute empty tree object ID
commit03a7f388dafaee0aa084144efe7a8f9c151e5221
authorbrian m. carlson <sandals@crustytoothpaste.net>
Wed, 2 May 2018 00:26:08 +0000 (2 00:26 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 2 May 2018 04:59:53 +0000 (2 13:59 +0900)
treee31007a046fd6f661af5df6d6d47cf747401823f
parente1ccd7e2b1cae8d7dab4686cddbd923fb6c46953
Update shell scripts to compute empty tree object ID

Several of our shell scripts hard-code the object ID of the empty tree.
To avoid any problems when changing hashes, compute this value on
startup of the script.  For performance, store the value in a variable
and reuse it throughout the life of the script.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-filter-branch.sh
git-rebase--interactive.sh
templates/hooks--pre-commit.sample