]> granicus.if.org Git - git/commitdiff
t5318: use test_oid for HASH_LEN
authorDerrick Stolee <stolee@gmail.com>
Thu, 13 Sep 2018 05:17:42 +0000 (05:17 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 17 Sep 2018 15:10:32 +0000 (08:10 -0700)
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5318-commit-graph.sh

index 0c500f7ca2641a2752f5d4819bb11efcf5f588bf..75fe09521f370e2da5a69ef0b80f9535122d06da 100755 (executable)
@@ -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