t9500: write "extensions.refstorage" into config
In t9500 we're writing a custom configuration that sets up gitweb. This requires us to manually ensure that the repository format is configured as required, including both the repository format version and extensions. With the introduction of the "extensions.refStorage" extension we need to update the test to also write this new one. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Patrick Steinhardt committed
Dec 29, 2023 at 08:27 UTC
1b2234079b24da99dd78e4ce4bfe338a2a841aed
1 file changed
+5
t/t9500-gitweb-standalone-no-errors.sh
+5
@@ -627,6 +627,7 @@ test_expect_success \
627
test_expect_success 'setup' '
628
version=$(git config core.repositoryformatversion) &&
629
algo=$(test_might_fail git config extensions.objectformat) &&
630
+ refstorage=$(test_might_fail git config extensions.refstorage) &&
631
cat >.git/config <<-\EOF &&
632
# testing noval and alternate separator
633
[gitweb]
@@ -637,6 +638,10 @@ test_expect_success 'setup' '
638
if test -n "$algo"
639
then
640
git config extensions.objectformat "$algo"
641
+ fi &&
642
+ if test -n "$refstorage"
643
+ then
644
+ git config extensions.refstorage "$refstorage"
645
fi
646
'
647