Merge branch 'en/rename-d-f' into en/merge-recursive
[gitweb.git] / t / t7300-clean.sh
index fe8abf6fd9e15fe0812d70a7e6faca2c26219352..6c776e9bec78ab1cf960293d8c796e9de13045b5 100755 (executable)
@@ -437,4 +437,20 @@ test_expect_success 'force removal of nested git work tree' '
        ! test -d bar
 '
 
+test_expect_success 'git clean -e' '
+       rm -fr repo &&
+       mkdir repo &&
+       (
+               cd repo &&
+               git init &&
+               touch known 1 2 3 &&
+               git add known &&
+               git clean -f -e 1 -e 2 &&
+               test -e 1 &&
+               test -e 2 &&
+               ! (test -e 3) &&
+               test -e known
+       )
+'
+
 test_done