diff options
author | brian m. carlson <sandals@crustytoothpaste.net> | 2018-05-13 04:24:12 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-05-14 04:02:00 +0200 |
commit | 198857bf7ed1dc2403884c1e6900650b50e0f0a9 (patch) | |
tree | 8ec7ad159c52a43a9ffc524428ed474835648bfc /t/t1407-worktree-ref-store.sh | |
parent | t/test-lib: add an SHA1 prerequisite (diff) | |
download | git-198857bf7ed1dc2403884c1e6900650b50e0f0a9.tar.xz git-198857bf7ed1dc2403884c1e6900650b50e0f0a9.zip |
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>
Diffstat (limited to 't/t1407-worktree-ref-store.sh')
0 files changed, 0 insertions, 0 deletions