commit d0f874e072cfb4119033a71b9f162ae02eca44ab from: Stefan Sperling date: Sun Feb 19 20:27:38 2023 UTC extend test_import_ignores test coverage Cover the case where a regular file would match if the ignore pattern did not have a trailing slash. commit - 076fbedce1fccdd95af706a8b068aa8a49c88165 commit + d0f874e072cfb4119033a71b9f162ae02eca44ab blob - 28fd8607f9a6b87c382e3669204da90a4ec3c6ac blob + c2f3ee46fef581bf98a2713c1d619163cb51f339 --- regress/cmdline/import.sh +++ regress/cmdline/import.sh @@ -374,6 +374,8 @@ test_import_ignores() { mkdir $testroot/tree make_test_tree $testroot/tree + touch $testroot/tree/upsilon + mkdir $testroot/tree/ysilon got import -I alpha -I 'beta/' -I '*lta*' -I '*silon/' \ -m 'init' -r $testroot/repo $testroot/tree > $testroot/stdout ret=$? @@ -384,6 +386,7 @@ test_import_ignores() { local head_commit=`git_show_head $testroot/repo` echo "A $testroot/tree/beta" >> $testroot/stdout.expected + echo "A $testroot/tree/upsilon" >> $testroot/stdout.expected echo "Created branch refs/heads/main with commit $head_commit" \ >> $testroot/stdout.expected