test scripts: refactor start_httpd helper
[gitweb.git] / t / t3001-ls-files-others-exclude.sh
index 8666946b025097d3e93c7853d39265429da81578..85aef12a113fed8164a085a19ce5c794ab96ff6f 100755 (executable)
@@ -140,4 +140,10 @@ test_expect_success 'trailing slash in exclude forces directory match (2)' '
 
 '
 
+test_expect_success 'negated exclude matches can override previous ones' '
+
+       git ls-files --others --exclude="a.*" --exclude="!a.1" >output &&
+       grep "^a.1" output
+'
+
 test_done