summaryrefslogtreecommitdiff
path: root/t/t0090-cache-tree.sh
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2018-09-24 10:30:53 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-09-24 10:30:53 -0700
commitcff90bdc5c8c8c0b0e3b8a1f32f220f0aba7af55 (patch)
treec5a80ef71ebab74fb74d6c8a1572877f3050167d /t/t0090-cache-tree.sh
parentMerge branch 'en/update-ref-no-deref-stdin' (diff)
parentt0090: disable GIT_TEST_SPLIT_INDEX for the test checking split index (diff)
downloadtgif-cff90bdc5c8c8c0b0e3b8a1f32f220f0aba7af55.tar.xz
Merge branch 'sg/split-index-test'
Test updates. * sg/split-index-test: t0090: disable GIT_TEST_SPLIT_INDEX for the test checking split index t1700-split-index: drop unnecessary 'grep'
Diffstat (limited to 't/t0090-cache-tree.sh')
-rwxr-xr-xt/t0090-cache-tree.sh17
1 files changed, 10 insertions, 7 deletions
diff --git a/t/t0090-cache-tree.sh b/t/t0090-cache-tree.sh
index 94fcb4a78e..504334e552 100755
--- a/t/t0090-cache-tree.sh
+++ b/t/t0090-cache-tree.sh
@@ -261,13 +261,16 @@ test_expect_success 'no phantom error when switching trees' '
'
test_expect_success 'switching trees does not invalidate shared index' '
- git update-index --split-index &&
- >split &&
- git add split &&
- test-tool dump-split-index .git/index | grep -v ^own >before &&
- git commit -m "as-is" &&
- test-tool dump-split-index .git/index | grep -v ^own >after &&
- test_cmp before after
+ (
+ sane_unset GIT_TEST_SPLIT_INDEX &&
+ git update-index --split-index &&
+ >split &&
+ git add split &&
+ test-tool dump-split-index .git/index | grep -v ^own >before &&
+ git commit -m "as-is" &&
+ test-tool dump-split-index .git/index | grep -v ^own >after &&
+ test_cmp before after
+ )
'
test_done