]> git.ipfire.org Git - thirdparty/git.git/commit - t/test-lib.sh
t/test-lib: introduce ZERO_OID
authorbrian m. carlson <sandals@crustytoothpaste.net>
Sun, 13 May 2018 02:24:12 +0000 (02:24 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 14 May 2018 02:02:00 +0000 (11:02 +0900)
commit198857bf7ed1dc2403884c1e6900650b50e0f0a9
tree8ec7ad159c52a43a9ffc524428ed474835648bfc
parentd16ab63429ba7278a2ec6cd5a5905875982242eb
t/test-lib: introduce ZERO_OID

Currently we have a variable, $_z40, which contains the all-zero object
ID.  However, with NewHash, we'll have an all-zero object ID which is
longer than 40 hex characters.  In such a case, $_z40 will be a
confusing name.  Create a $ZERO_OID variable which will always reflect
the all-zeros object ID, regardless of the length of the current hash.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/test-lib.sh