@matheusbsbs / matheus-bagliano / commits / d827bce5ed
Fork 0

t1001: use $ZERO_OID

Use $ZERO_OID to make the test hash independent. 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>

brian m. carlson committed Jul 29, 2020 at 23:13 UTC d827bce5ede425853d77b710ec93f60e0ebd2efb
1 file changed +2 -2
t/t1091-sparse-checkout-builtin.sh
+2 -2
@@ -369,7 +369,7 @@ test_expect_success 'sparse-checkout (init|set|disable) warns with unmerged stat
369 git clone repo unmerged &&
370
371 cat >input <<-EOF &&
372 - 0 0000000000000000000000000000000000000000 folder1/a
372 + 0 $ZERO_OID folder1/a
373 100644 $(git -C unmerged rev-parse HEAD:folder1/a) 1 folder1/a
374 EOF
375 git -C unmerged update-index --index-info <input &&
@@ -396,7 +396,7 @@ test_expect_success 'sparse-checkout reapply' '
396 echo dirty >tweak/deep/deeper2/a &&
397
398 cat >input <<-EOF &&
399 - 0 0000000000000000000000000000000000000000 folder1/a
399 + 0 $ZERO_OID folder1/a
400 100644 $(git -C tweak rev-parse HEAD:folder1/a) 1 folder1/a
401 EOF
402 git -C tweak update-index --index-info <input &&