Merge branch 'sg/split-index-test' into maint
Test updates. * sg/split-index-test: t0090: disable GIT_TEST_SPLIT_INDEX for the test checking split index t1700-split-index: drop unnecessary 'grep'maint
commit
85f6afc28b
|
@ -261,13 +261,16 @@ test_expect_success 'no phantom error when switching trees' '
|
||||||
'
|
'
|
||||||
|
|
||||||
test_expect_success 'switching trees does not invalidate shared index' '
|
test_expect_success 'switching trees does not invalidate shared index' '
|
||||||
git update-index --split-index &&
|
(
|
||||||
>split &&
|
sane_unset GIT_TEST_SPLIT_INDEX &&
|
||||||
git add split &&
|
git update-index --split-index &&
|
||||||
test-tool dump-split-index .git/index | grep -v ^own >before &&
|
>split &&
|
||||||
git commit -m "as-is" &&
|
git add split &&
|
||||||
test-tool dump-split-index .git/index | grep -v ^own >after &&
|
test-tool dump-split-index .git/index | grep -v ^own >before &&
|
||||||
test_cmp before after
|
git commit -m "as-is" &&
|
||||||
|
test-tool dump-split-index .git/index | grep -v ^own >after &&
|
||||||
|
test_cmp before after
|
||||||
|
)
|
||||||
'
|
'
|
||||||
|
|
||||||
test_done
|
test_done
|
||||||
|
|
|
@ -67,7 +67,7 @@ test_expect_success 'disable split index' '
|
||||||
EOF
|
EOF
|
||||||
test_cmp ls-files.expect ls-files.actual &&
|
test_cmp ls-files.expect ls-files.actual &&
|
||||||
|
|
||||||
BASE=$(test-tool dump-split-index .git/index | grep "^own" | sed "s/own/base/") &&
|
BASE=$(test-tool dump-split-index .git/index | sed -n "s/^own/base/p") &&
|
||||||
test-tool dump-split-index .git/index | sed "/^own/d" >actual &&
|
test-tool dump-split-index .git/index | sed "/^own/d" >actual &&
|
||||||
cat >expect <<-EOF &&
|
cat >expect <<-EOF &&
|
||||||
not a split index
|
not a split index
|
||||||
|
|
Loading…
Reference in New Issue