perf: add a comparison test of log --grep regex engines
[gitweb.git] / t / t1700-split-index.sh
index ea1aeacff0f080ce57542bba5d65d301b2cc7af8..af3ec0da5ac0f5e0f6e19616d9c55b611ba5a701 100755 (executable)
@@ -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 &&