]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t1600-index.sh
test-lib-functions: add helper for trailing hash
[thirdparty/git.git] / t / t1600-index.sh
index 98c5a83db73a34bd1828e7895032e97be727953f..2f792bb8ffa491759f83979df4d68086fc710235 100755 (executable)
@@ -68,6 +68,9 @@ test_expect_success 'out of bounds index.version issues warning' '
 test_expect_success 'index.skipHash config option' '
        rm -f .git/index &&
        git -c index.skipHash=true add a &&
+       test_trailing_hash .git/index >hash &&
+       echo $(test_oid zero) >expect &&
+       test_cmp expect hash &&
        git fsck &&
 
        test_commit start &&
@@ -76,6 +79,8 @@ test_expect_success 'index.skipHash config option' '
        git -C sub config index.skipHash true &&
        >sub/file &&
        git -C sub add a &&
+       test_trailing_hash .git/modules/sub/index >hash &&
+       test_cmp expect hash &&
        git -C sub fsck
 '