File tree Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -261,13 +261,16 @@ test_expect_success 'no phantom error when switching trees' '
261
261
'
262
262
263
263
test_expect_success ' switching trees does not invalidate shared index' '
264
- git update-index --split-index &&
265
- >split &&
266
- git add split &&
267
- test-tool dump-split-index .git/index | grep -v ^own >before &&
268
- git commit -m "as-is" &&
269
- test-tool dump-split-index .git/index | grep -v ^own >after &&
270
- test_cmp before after
264
+ (
265
+ sane_unset GIT_TEST_SPLIT_INDEX &&
266
+ git update-index --split-index &&
267
+ >split &&
268
+ git add split &&
269
+ test-tool dump-split-index .git/index | grep -v ^own >before &&
270
+ git commit -m "as-is" &&
271
+ test-tool dump-split-index .git/index | grep -v ^own >after &&
272
+ test_cmp before after
273
+ )
271
274
'
272
275
273
276
test_done
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ test_expect_success 'disable split index' '
57
57
EOF
58
58
test_cmp ls-files.expect ls-files.actual &&
59
59
60
- BASE=$(test-tool dump-split-index .git/index | grep "^own" | sed "s/own/base/") &&
60
+ BASE=$(test-tool dump-split-index .git/index | sed -n "s/^ own/base/p ") &&
61
61
test-tool dump-split-index .git/index | sed "/^own/d" >actual &&
62
62
cat >expect <<-EOF &&
63
63
not a split index
You can’t perform that action at this time.
0 commit comments