File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -1164,6 +1164,22 @@ test_expect_success 'clean' '
1164
1164
test_sparse_match test_path_is_dir folder1
1165
1165
'
1166
1166
1167
+ test_expect_success ' show (cached blobs/trees)' '
1168
+ init_repos &&
1169
+
1170
+ test_all_match git show :a &&
1171
+ test_all_match git show :deep/a &&
1172
+ test_sparse_match git show :folder1/a &&
1173
+
1174
+ # Asking "git show" for directories in the index
1175
+ # does not work as implemented. The error message is
1176
+ # different for a full checkout and a sparse checkout
1177
+ # when the directory is outside of the cone.
1178
+ test_all_match test_must_fail git show :deep/ &&
1179
+ test_must_fail git -C full-checkout show :folder1/ &&
1180
+ test_sparse_match test_must_fail git show :folder1/
1181
+ '
1182
+
1167
1183
test_expect_success ' submodule handling' '
1168
1184
init_repos &&
1169
1185
You can’t perform that action at this time.
0 commit comments