From: Derrick Stolee Date: Thu, 13 Sep 2018 05:17:42 +0000 (+0000) Subject: t5318: use test_oid for HASH_LEN X-Git-Tag: v2.20.0-rc0~198^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ae0c89d41bbdbcdd53296a8260907105de38e112;p=git t5318: use test_oid for HASH_LEN Signed-off-by: Derrick Stolee Signed-off-by: brian m. carlson Signed-off-by: Junio C Hamano --- diff --git a/t/t5318-commit-graph.sh b/t/t5318-commit-graph.sh index 0c500f7ca2..75fe09521f 100755 --- a/t/t5318-commit-graph.sh +++ b/t/t5318-commit-graph.sh @@ -8,7 +8,8 @@ test_expect_success 'setup full repo' ' cd "$TRASH_DIRECTORY/full" && git init && git config core.commitGraph true && - objdir=".git/objects" + objdir=".git/objects" && + test_oid_init ' test_expect_success 'verify graph with no graph file' ' @@ -273,7 +274,7 @@ test_expect_success 'git commit-graph verify' ' NUM_COMMITS=9 NUM_OCTOPUS_EDGES=2 -HASH_LEN=20 +HASH_LEN="$(test_oid rawsz)" GRAPH_BYTE_VERSION=4 GRAPH_BYTE_HASH=5 GRAPH_BYTE_CHUNK_COUNT=6