Merge branch 'js/export-with-assignment'
[gitweb.git] / t / t7300-clean.sh
index 25d3102dedd31f43bfaabd1ae05fdebbc51863f8..f013c176ed910d278cbb886004429869f288ebc7 100755 (executable)
@@ -291,4 +291,15 @@ test_expect_success 'clean.requireForce and -f' '
 
 '
 
+test_expect_success 'core.excludesfile' '
+
+       echo excludes >excludes &&
+       echo included >included &&
+       git config core.excludesfile excludes &&
+       output=$(git clean -n excludes included 2>&1) &&
+       expr "$output" : ".*included" >/dev/null &&
+       ! expr "$output" : ".*excludes" >/dev/null
+
+'
+
 test_done