]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t7300-clean.sh
The sixth batch
[thirdparty/git.git] / t / t7300-clean.sh
index 6e6d24c1c3a5c5397241e266c09fe214ec14d53f..cb5e34d94c3a163ecc3785d4b3afdeeb98c60ec6 100755 (executable)
@@ -737,4 +737,13 @@ test_expect_success MINGW 'handle clean & core.longpaths = false nicely' '
        test_i18ngrep "too long" .git/err
 '
 
+test_expect_success 'clean untracked paths by pathspec' '
+       git init untracked &&
+       mkdir untracked/dir &&
+       echo >untracked/dir/file.txt &&
+       git -C untracked clean -f dir/file.txt &&
+       ls untracked/dir >actual &&
+       test_must_be_empty actual
+'
+
 test_done