diff options
Diffstat (limited to 't/t1700-split-index.sh')
-rwxr-xr-x | t/t1700-split-index.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/t/t1700-split-index.sh b/t/t1700-split-index.sh index ea1aeacff..af3ec0da5 100755 --- a/t/t1700-split-index.sh +++ b/t/t1700-split-index.sh @@ -201,6 +201,22 @@ test_expect_success 'unify index, two files remain' ' test_cmp expect actual ' +test_expect_success 'rev-parse --shared-index-path' ' + test_create_repo split-index && + ( + cd split-index && + git update-index --split-index && + echo .git/sharedindex* >expect && + git rev-parse --shared-index-path >actual && + test_cmp expect actual && + mkdir subdirectory && + cd subdirectory && + echo ../.git/sharedindex* >expect && + git rev-parse --shared-index-path >actual && + test_cmp expect actual + ) +' + test_expect_success 'set core.splitIndex config variable to true' ' git config core.splitIndex true && : >three && |