summaryrefslogtreecommitdiff
path: root/t/t5325-reverse-index.sh
diff options
context:
space:
mode:
authorTaylor Blau <me@ttaylorr.com>2021-01-25 23:37:38 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-01-26 02:32:44 (GMT)
commit35a8a3547a841b031b14cd759cf53996bca89baf (patch)
tree40b84bc7730e04a91485dcde8a1528cc8b2bee8e /t/t5325-reverse-index.sh
parent1615c567b8cf65725f4aee5206ad5a04273794dd (diff)
downloadgit-35a8a3547a841b031b14cd759cf53996bca89baf.zip
git-35a8a3547a841b031b14cd759cf53996bca89baf.tar.gz
git-35a8a3547a841b031b14cd759cf53996bca89baf.tar.bz2
t: prepare for GIT_TEST_WRITE_REV_INDEX
In the next patch, we'll add support for unconditionally enabling the 'pack.writeReverseIndex' setting with a new GIT_TEST_WRITE_REV_INDEX environment variable. This causes a little bit of fallout with tests that, for example, compare the list of files in the pack directory being unprepared to see .rev files in its output. Those locations can be cleaned up to look for specific file extensions, rather than take everything in the pack directory (for instance) and then grep out unwanted items. Once the pack.writeReverseIndex option has been thoroughly tested, we will default it to 'true', removing GIT_TEST_WRITE_REV_INDEX, and making it possible to revert this patch. Signed-off-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5325-reverse-index.sh')
-rwxr-xr-xt/t5325-reverse-index.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/t/t5325-reverse-index.sh b/t/t5325-reverse-index.sh
index 8704026..be452bb 100755
--- a/t/t5325-reverse-index.sh
+++ b/t/t5325-reverse-index.sh
@@ -3,6 +3,10 @@
test_description='on-disk reverse index'
. ./test-lib.sh
+# The below tests want control over the 'pack.writeReverseIndex' setting
+# themselves to assert various combinations of it with other options.
+sane_unset GIT_TEST_WRITE_REV_INDEX
+
packdir=.git/objects/pack
test_expect_success 'setup' '