]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t1091-sparse-checkout-builtin.sh
sparse-checkout: create leading directory
[thirdparty/git.git] / t / t1091-sparse-checkout-builtin.sh
index 272ba1b566b3eaf43798f9ecfb1a77c26db3f59b..41b7984c594b5ddfb11c198425d62938699485e4 100755 (executable)
@@ -71,6 +71,12 @@ test_expect_success 'git sparse-checkout init' '
        check_files repo a
 '
 
+test_expect_success 'git sparse-checkout init in empty repo' '
+       test_when_finished rm -rf empty-repo blank-template &&
+       git init --template= empty-repo &&
+       git -C empty-repo sparse-checkout init
+'
+
 test_expect_success 'git sparse-checkout list after init' '
        git -C repo sparse-checkout list >actual &&
        cat >expect <<-\EOF &&