summaryrefslogtreecommitdiff
path: root/t/lib-pack.sh
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2020-07-29 23:14:28 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-07-30 16:16:49 (GMT)
commite023ff0691ca207d421a0e75ea23c132ada9142a (patch)
tree442aa0f3908245f1ea02f3dc92efe200b6c315d4 /t/lib-pack.sh
parent4feb562fc93184b427413b077301c99e71af5a75 (diff)
downloadgit-e023ff0691ca207d421a0e75ea23c132ada9142a.zip
git-e023ff0691ca207d421a0e75ea23c132ada9142a.tar.gz
git-e023ff0691ca207d421a0e75ea23c132ada9142a.tar.bz2
t: remove test_oid_init in tests
Now that we call test_oid_init in the setup for all test scripts, there's no point in calling it individually. Remove all of the places where we've done so to help keep tests tidy. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Reviewed-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/lib-pack.sh')
-rw-r--r--t/lib-pack.sh3
1 files changed, 0 insertions, 3 deletions
diff --git a/t/lib-pack.sh b/t/lib-pack.sh
index 0c799d5..bb8938c 100644
--- a/t/lib-pack.sh
+++ b/t/lib-pack.sh
@@ -35,8 +35,6 @@ pack_header () {
# have hardcoded some well-known objects. See the case statements below for the
# complete list.
pack_obj () {
- test_oid_init
-
case "$1" in
# empty blob
$EMPTY_BLOB)
@@ -121,7 +119,6 @@ pack_obj () {
# Compute and append pack trailer to "$1"
pack_trailer () {
- test_oid_init &&
test-tool $(test_oid algo) -b <"$1" >trailer.tmp &&
cat trailer.tmp >>"$1" &&
rm -f trailer.tmp