X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft3700-add.sh;h=ad8cc7d4ae88e2066d2f51b6a6a5a192780d5e9a;hb=4c7100a9f438c281c18c800b450ea12045d22d62;hp=08e035220cfd5c2da0798eba84c779981f185b4a;hpb=8ab3e1858676b91bf351537b8afd5599c6640e6f;p=git.git diff --git a/t/t3700-add.sh b/t/t3700-add.sh index 08e035220..ad8cc7d4a 100755 --- a/t/t3700-add.sh +++ b/t/t3700-add.sh @@ -104,4 +104,10 @@ test_expect_success 'add ignored ones with -f' ' git-ls-files --error-unmatch d.ig/d.if d.ig/d.ig ' +mkdir 1 1/2 1/3 +touch 1/2/a 1/3/b 1/2/c +test_expect_success 'check correct prefix detection' ' + git add 1/2/a 1/3/b 1/2/c +' + test_done