t5318: use test_oid for HASH_LEN
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>
Derrick Stolee committed
Sep 13, 2018 at 05:17 UTC
ae0c89d41bbdbcdd53296a8260907105de38e112
1 file changed
+3
-2
t/t5318-commit-graph.sh
+3
-2
@@ -8,7 +8,8 @@ test_expect_success 'setup full repo' '
8
cd "$TRASH_DIRECTORY/full" &&
9
git init &&
10
git config core.commitGraph true &&
11
- objdir=".git/objects"
11
+ objdir=".git/objects" &&
12
+ test_oid_init
13
'
14
15
test_expect_success 'verify graph with no graph file' '
@@ -273,7 +274,7 @@ test_expect_success 'git commit-graph verify' '
274
275
NUM_COMMITS=9
276
NUM_OCTOPUS_EDGES=2
276
-HASH_LEN=20
277
+HASH_LEN="$(test_oid rawsz)"
278
GRAPH_BYTE_VERSION=4
279
GRAPH_BYTE_HASH=5
280
GRAPH_BYTE_CHUNK_COUNT=6