Merge branch 'js/travis-32bit-linux'
[gitweb.git] / t / t1700-split-index.sh
index 292a0720fccb0becca47fad2945634cbffeb89d6..6096f2c630947241a2dee410255aeebb818b14f9 100755 (executable)
@@ -200,4 +200,20 @@ EOF
        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_done